PDA

View Full Version : Entity Reset Fixer


Vet
02-13-2010, 09:31 PM
Updated 3-27-10

This plugin will fix problems with entities that don't set properly upon map
(re)initialization. Two entities have been discovered and discussed thus far and separate plugins were written to fix them. This plugin simply combines those two plugins. This plugin will be updated to include other entities as they are discovered and fixed.

Entities fixed thus far...
path_track (http://www.dodplugins.net/forums/showthread.php?t=1486): Because this entity doesn't reset properly, the func_traintrack entity loses its path and freezes up. Superceding either routine fixes it.
func_door (http://www.dodplugins.net/forums/showthread.php?t=1864): If a door is open upon restarting a round, the door will remain open (func_door_rotating entities reset OK). Must supercede the Ham_DOD_RoundRespawnEnt() routine.
dod_round_timer: The timer doesn't get disabled if the Offensive (the team that must complete the objectives before the timer runs out) team wins. Thus, if the Offensive team wins with only a few seconds remaining, the timer can hit 0 during the round end time and trigger a win for the Defensive team as well.

New entities can/will be added as discovered.

Updated 3-27-10

Vet
03-27-2010, 10:56 PM
A new fix has been added to this plugin. The new fix is for timed, object maps.

Sohood
11-30-2011, 10:09 AM
Hi Vet,

Could you add env_globals in your code as well? I use them a lot in maps and I have to set them a specific way to reset them and its a pain!