Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] NoC4DefuseOnLeave
[SSGM 4.0 Plugin] NoC4DefuseOnLeave [message #467862] Thu, 24 May 2012 01:03 Go to previous message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma:
General (4 Stars)
This plugin will change the way Proxy C4 work so they don't get defused after their owner/planter leaves the game. It does this by setting the PlayerDataClass member variable of C4GameObj to NULL after a Proxy C4 has been created and setting the owner to NULL after he left the server. Info about Proxy C4 and their owner is kept and when a player rejoins, their ownership of a Proxy C4 will be restored. Whitedragon and I did some research on changing ownership of mines and Whitedragon also give me crucial help and feedback to get this plugin working.

It's important to check if any server-side mods you're running checks for NULL C4 ownership and a NULL PlayerDataClass member viariable of C4GameObjs, if they access these member variables. I'm also not sure if there are any unusual side-effects caused by this plugin, during testing nothing weird was noticed. This plugin breaks C4GameObj::Restore_Owner() for Proxy C4 so it implements its own version of it. (The function will update the GameObject that owns the Proxy C4 by checking the PlayerDataClass member variable after the owner dies, but because this plugin sets that PlayerDataClass member variable to NULL that doesn't work.)

To install place 'NoC4DefuseOnLeave.dll' in your FDS' root folder and add an entry for it under the [Plugins] section of ssgm.ini.

Thanks to:
Whitedragon - figured out how to change C4 ownership together and gave me important help with writing this plugin.
jonwil - Helped me with a design issue that was bugging me a lot.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [CODE]Server frame time checker (Thanks to jonwil!)
Next Topic: [SSGM Plugin] EvacPlugin
Goto Forum:
  


Current Time: Fri Apr 19 03:13:32 MST 2024

Total time taken to generate the page: 0.00694 seconds