Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Custom Flip Kill
[SSGM 4.0 Plugin] Custom Flip Kill [message #467299] Sat, 12 May 2012 07:21 Go to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
This plugin contains my implementation of vehicle flip killing, my code checks if the absolute value of the Y rotation of a vehicle (in radians) is more than 1.3 and will then attach a script to destroy the vehicle after a few seconds if the vehicle doesn't "unflip" itself. I've included the following features:

-You can have a list of presets that should not be killed when they flip over
-You can have a list of presets that will be flipped back up ("unflipped") when they flip
-You can configure the multiple intervals used between the flip kill checkings.

You can contact me under the nick "iRANian" on renforums.com

To install, open or create the file "tt.ini" in the FDS' Data folder and add "[General]" and on a new line add "DisableVehicleFlipKill=true" if they don't exist. Then open up SSGM.ini in the main FDS folder and add an entry for 'CustomFlipKill.dll' under the [Plugins] section of the file, then at the bottom of the file add:

[CustomFlipKill]
CheckInterval = 3 ; Interval to wait before checking if all vehicles are flipped again
ScriptCheckingInterval = 1.f ; If a vehicle is detected to be flipped a script gets attached that checks every interval
ChecksCount = 4 ; When the script reaches this amount of checks done it'll destroy the vehicle if it's still flipped

[CustomFlipKill_DontFlipKillPresets]
; You can configure a list of vehicles to not flip kill here, e.g. if you don't want flying vehicles to flip kill
;01= CnC_GDI_Orca
;02 = Cnc_Nod_Apache
;03 = CnC_GDI_Transport
;04 = CnC_Nod_Transport

[CustomFlipKill_RotateUpwardsPresets]
; The presets listed here won't be killed when they're flipped, instead they will be rotated back upwards

;01=CnC_Nod_Buggy
;02=CnC_Nod_Light_Tank
;03=CnC_GDI_Mammoth_Tank


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
Re: [SSGM 4.0 Plugin] Custom Flip Kill [message #467343 is a reply to message #467299] Sun, 13 May 2012 21:38 Go to previous message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

This is actually quite neat Iran. Awesome job! Big Ups

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Previous Topic: [Code] Sending WOL pages without the PAGE console command
Next Topic: [SSGM 4.0 Plugin] Disallow Elevator Beacons
Goto Forum:
  


Current Time: Sat Apr 20 05:57:36 MST 2024

Total time taken to generate the page: 0.00991 seconds