Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[DOD:S] Day of Defeat entities not being able to be enabled when set to Start Disabled

Open sonoma-hyenaz opened this issue 1 year ago • 1 comments

Hello, I'm here to report a bug I'm experiencing with Day of Defeat entities.

Here I have a dod_capture_area with the keyvalue StartDisabled set to Yes image

Via I/O this dod_capture_area is supposed to be enabled when the Allies capture the first dod_control_point image

However, in-game when I capture the first dod_control_point the second dod_capture_area does not get enabled image

Setting the StartDisabled keyvalue back to No, inside the dod_capture_area allows me to properly enable and disable it via ent_fire but this simply won't be possible to do without sv_cheats enabled image

A work around I discovered while writing this is to have all Day of Defeat Entities set to start enabled and using a logic_auto with OnMapSpawn to manually disable them, which while it does achieve the desired goal, it is not very intuitive from a logic perspective and adds unnecessary complexity to logic setups, at least until a proper fix is implemented. image

I will also add that this seems to be an issue with nearly all Day of Defeat specific entities

sonoma-hyenaz avatar Sep 26 '24 21:09 sonoma-hyenaz

I will also add that this seems to be an issue with nearly all Day of Defeat specific entities

For unrelated reasons to each other. Lets go though each entity that inherits "EnableDisable" in the FGD:

  • dod_capture_area - StartDisabled KV doesn't work because the associated variable gets set to false when the entity spawns (this should've been done in the class constructor instead). Enable and Disable inputs work as intended.
  • dod_bomb_dispenser - same issue as dod_capture_area.
  • dod_control_point - StartDisabled KV and Enable/Disable inputs don't exist. This would probably need to be a preserved entity for them to work properly even if they did exist.
  • info_doddetect - StartDisabled KV and Enable/Disable inputs don't exist. They'd be kinda useless unless Valve also fixed the entity not being preserved between rounds when it's supposed to be.
  • dod_control_point_master - StartDisabled KV and Enable/Disable inputs exist and work correctly, but are kinda useless due to entity not being preserved between rounds.
  • dod_bomb_target - StartDisabled KV and Enable/Disable inputs exist and work correctly. Reset between rounds, as it should be.
  • info_player_axis/info_player_allies - StartDisabled KV and Enable/Disable inputs exist and (should) work correctly. Preserved between rounds, as they should be.

SirYodaJedi avatar Dec 11 '25 02:12 SirYodaJedi