Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Search found 97 matches

by NearHuscarl
Mon Aug 12, 2019 2:38 am
Forum: Getting started with the ScriptAPI
Topic: Scripting 16 - Fire
Replies: 2
Views: 4426

Re: Scripting 16 - Fire

Since you add FireNode. IGame.SpawnFireNode() and IGame.SpawnFireNodes() should return FireNode and FireNode[] respectively instead of void
by NearHuscarl
Thu Aug 08, 2019 6:10 pm
Forum: Answered ScriptAPI Topics
Topic: Be able to set IPlayer behavior when received enough overkill damage
Replies: 6
Views: 5057

Re: Be able to set IPlayer behavior when received enough overkill damage

Thanks everyone for your help. I ended up with similar solution to JakSparro98's one. Adding more debris effects seem to hide the blood pretty well.

https://github.com/NearHuscarl/SFDScrip ... imation.cs
by NearHuscarl
Thu Aug 08, 2019 3:03 pm
Forum: Solved Bugs
Topic: ObjectCreatedCallback does not work without ObjectTerminatedCallback
Replies: 1
Views: 1710

ObjectCreatedCallback does not work without ObjectTerminatedCallback

public void OnStartup() { Events.ObjectCreatedCallback.Start(OnObjectCreated); // Uncomment the line below and it will work again // Events.ObjectTerminatedCallback.Start(OnObjectTerminated); } public void OnObjectCreated(IObject[] objs) { foreach (IObject obj in objs) { Game.WriteToConsole(string....
by NearHuscarl
Wed Aug 07, 2019 10:21 pm
Forum: Answered ScriptAPI Topics
Topic: How to make a bot target a player via script?
Replies: 2
Views: 3065

How to make a bot target a player via script?

EDIT: Here is a pretty good workaround for me To make a bot target a different bot or any IObject IObject targetObj = ... IPlayer player = ... player.SetGuardTarget(targetObj); var bs = Player.GetBotBehaviorSet(); bs.GuardRange = 1f; bs.ChaseRange = 1f; player.SetBotBehaviorSet(bs); ------- I need t...
by NearHuscarl
Wed Aug 07, 2019 4:45 pm
Forum: Answered ScriptAPI Topics
Topic: Be able to set IPlayer behavior when received enough overkill damage
Replies: 6
Views: 5057

Re: Be able to set IPlayer behavior when received enough overkill damage

I thought about that workaround, but the giblet objects still appear like 1 frame before being removed. You can still see the blood effect, that's what annoys me. But I will keep that solution in mind if they cannot add my suggestions for whatever reasons
by NearHuscarl
Wed Aug 07, 2019 2:22 am
Forum: Answered ScriptAPI Topics
Topic: Be able to set IPlayer behavior when received enough overkill damage
Replies: 6
Views: 5057

Be able to set IPlayer behavior when received enough overkill damage

Context: when using IPlayer.SetHitEffect(PlayerHitEffect.Metal) to make robot-like sound effect for player. After the player died and received enough overkill damage, it bursts into blood and gore which breaks the immersion. I'd like something like IPlayer.SetDestroyAnimation() where I can determine...
by NearHuscarl
Fri Jul 26, 2019 11:50 pm
Forum: SFD Status Updates
Topic: Status Update 2019-07-26
Replies: 7
Views: 6558

Re: Status Update 2019-07-26

I am in the same boat with KliPeH when it comes to the the direction SFD should take Currently I have 150+ hours on Steam and I almost never touch multiplayer for reasons that has already been mentioned (high ping, few players). I play versus mode extensively, rarely play survival (not my cup of tea...
by NearHuscarl
Fri Jul 26, 2019 1:43 pm
Forum: Getting started with the ScriptAPI
Topic: Scripting 08 - Projectile manipulation
Replies: 4
Views: 5593

Re: Scripting 08 - Projectile manipulation

Does IProjectile have the ID of the player who shot it? I want to know if player B is shot by player A, but it can't be implemented cleanly with the current version of the script API
by NearHuscarl
Sat Jul 20, 2019 5:13 pm
Forum: Answered ScriptAPI Topics
Topic: How to know if the player is punching and not using melee weapon?
Replies: 2
Views: 3065

How to know if the player is punching and not using melee weapon?

Code: Select all

IPlayer.IsMeleeAttacking
return true if player is melee attacking with or without melee weapon. But what if I need to know when the player is attacking without weapon (bare hand)?
by NearHuscarl
Sat Mar 23, 2019 8:27 pm
Forum: Answered ScriptAPI Topics
Topic: Document effect names in scriptAPI
Replies: 7
Views: 5712

Re: Document effect names in scriptAPI

I know how to get the effect names. But the devs should themselves document the effects and the params required on some other effects. Some effects I cannot use like "HIT" or "PWT", I assume because of the missing undocumented params. Here are some of the effects that not working (commented) https:/...
by NearHuscarl
Fri Mar 22, 2019 7:03 am
Forum: Answered ScriptAPI Topics
Topic: Document effect names in scriptAPI
Replies: 7
Views: 5712

Document effect names in scriptAPI

The only effect name that is documented right now is "CFTXT". There are some other cool effects like "BLD" (blood) or "S_P" (spark) that would benefit modders if documented properly. The old thread about effect names is over a year old
by NearHuscarl
Sat Feb 23, 2019 5:37 pm
Forum: Implemented ScriptAPI suggestions
Topic: Determine if player corpse is burned
Replies: 1
Views: 2568

Determine if player corpse is burned

I am writing a script to convert infected players into zombies after dying only if the corpses are not burned yet. Currently there is only IPlayer.IsBurning but only if player is CURRENTLY burning which are not necessarily burning at the time the corpse turn into zombie. Something like IPlayer.IsBur...
by NearHuscarl
Sat Feb 23, 2019 4:39 pm
Forum: Answered ScriptAPI Topics
Topic: How to check if IPlayer is gibbed in OnPlayerDeath event
Replies: 3
Views: 3729

Re: How to check if IPlayer is gibbed in OnPlayerDeath event

A gibbed player is also a removed player and a removed player doesn't carry any information what so ever because the player instance does no longer exist. Note that the OnPlayerDeath event is run when the player is killed (dies) and also when the player is removed (falling outside the map or being ...
by NearHuscarl
Sat Feb 23, 2019 3:19 pm
Forum: Answered ScriptAPI Topics
Topic: How to check if IPlayer is gibbed in OnPlayerDeath event
Replies: 3
Views: 3729

How to check if IPlayer is gibbed in OnPlayerDeath event

Here is the relevant section of my code. Currently this is how I check if the player is gibbed by checking IPlayer.IsRemoved at the next frame. Is there a more convenient way to do this. Something like IPlayer.IsGibbed that I can check right in OnPlayerDeath event? public static class BotHelper { pr...
by NearHuscarl
Fri Feb 08, 2019 6:20 am
Forum: Answered ScriptAPI Topics
Topic: PlayerModifier and PlayerSpawnTrigger in challenge maps
Replies: 3
Views: 3117

Re: PlayerModifier and PlayerSpawnTrigger in challenge maps

Im talking about the challenge maps you complete to unlock new clothes. Zombie Nightmare and The Pit dont have some other bots like Assassin, Demolitionist or Mutant I bielieve. But I cant find those challenge maps for references
by NearHuscarl
Thu Feb 07, 2019 4:49 am
Forum: Answered ScriptAPI Topics
Topic: PlayerModifier and PlayerSpawnTrigger in challenge maps
Replies: 3
Views: 3117

PlayerModifier and PlayerSpawnTrigger in challenge maps

Hi. Im writing a script to spawn random bots from the challenge map (TheDemolitionist, Meatgrinder, Santa...) in regular vs maps. Right now I can only find the bot profiles from Content\Data\Maps\Official\other\botprofiles.sfdm. Where can I find the remaining info like PlayerModifier and PlayerSpawn...