Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] FlamingC4Prevention
[SSGM 4.0 Plugin] FlamingC4Prevention [message #463867] Wed, 07 March 2012 13:42 Go to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
This plugin adds various measures to the FDS to prevent people doing so called 'flaming C4'. All C4 placed on friendly units are automatically disarmed, Proxy C4 placed on empty vehicles are auto-disarmed too and a few limits have been added to the amount of Remote C4 and Timed C4 allowed stacked on top of each other or on neutral vehicles.

You can contact me under the nick iRANian on renegadeforums.com. Thanks to Xpert for finding an issue where C4 on Purchase Terminals got disarmed.

Changelog:
v2:
-Fixed a bug that caused C4 placed on Purchase Terminals to be disarmed.

To install, place 'FlamingC4Prevention.dll' in the root FDS folder and add an entry for it in SSGM.ini under [Plugins]. Then at the bottom of SSGM.ini add:

[FlamingC4Prevention]
; Messages used by this script:
PageMessage = Your C4 has been automatically disarmed by the Flaming C4 prevention script.
TimedC4LimitMessage = You placed too many Timed C4 on empty vehicle(s), your last one has been disarmed.
RemoteC4LimitMessage = You placed too many Remote C4 on empty vehicle(s), your last one has been disarmed.
TimedC4StackedMessage = Your last Timed C4 has been disarmed, please don't place C4 on top of each other.
RemoteC4StackedMessage = Your last Remote C4 has been disarmed, please don't place C4 on top of each other.

;How many Timed C4 are allowed to be attached to empty vehicles per player?
TimedC4Limit = 3

;How many Remote C4 are allowed to be attached to empty vehicles per player?
RemoteC4Limit = 6

;Total Timed C4 that are allowed to be stacked (i.e. placed on top another C4) per player
TimedC4Stacked = 2

;Total Remote C4 that are allowed to be stacked per player
RemoteC4Stacked = 2

;How long to wait in secs after C4 creation before activating the flaming c4 check
ActivationWaitTime = 2


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

[Updated on: Sat, 14 July 2012 09:25]

Report message to a moderator

Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #464044 is a reply to message #463867] Thu, 08 March 2012 21:26 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Nice, the only thing I don't like is that it also disarms the Proximity C4s you've placed on the base. So if you're the base miner of like 40 mines, and you flame c4 your vehicle, all your mines are gone.

http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #464050 is a reply to message #464044] Fri, 09 March 2012 00:22 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Xpert wrote on Thu, 08 March 2012 21:26

Nice, the only thing I don't like is that it also disarms the Proximity C4s you've placed on the base. So if you're the base miner of like 40 mines, and you flame c4 your vehicle, all your mines are gone.

That shouldn't happen, I'll look into it. Thanks for reporting.


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] FlamingC4Prevention [message #464082 is a reply to message #463867] Fri, 09 March 2012 10:21 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
I can't reproduce it, the only thing I notice is that if you're on the mine limit and you place a Proxy C4 on your Buggy, one of your mines will be disarmed because of the limit and two seconds later the Proxy on the Buggy will be disarmed, but not all the mines you laid.

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] FlamingC4Prevention [message #464091 is a reply to message #463867] Fri, 09 March 2012 13:14 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
That's weird. I can't do it either LOL. Maybe something else did it.

http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #464092 is a reply to message #463867] Fri, 09 March 2012 13:24 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Alright, tell me if it happens again.

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] FlamingC4Prevention [message #464117 is a reply to message #463867] Fri, 09 March 2012 18:38 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
BOOOO!!! HISSSS!!! BOOO!!!


Flaming vehicles are a legitimate strategy!


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #464124 is a reply to message #464117] Fri, 09 March 2012 20:06 Go to previous messageGo to next message
Intradox is currently offline  Intradox
Messages: 60
Registered: February 2011
Location: United States
Karma: 0
Recruit
halo2pac wrote on Fri, 09 March 2012 18:38

BOOOO!!! HISSSS!!! BOOO!!!


Flaming vehicles are a legitimate strategy!


Yeah if you suck.


Not pro enough at renegade to snipe.
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #464222 is a reply to message #463867] Sun, 11 March 2012 10:11 Go to previous messageGo to next message
Generalcamo is currently offline  Generalcamo
Messages: 522
Registered: October 2010
Karma: 0
Colonel
You might want to allow us to choose which vehicles can have flaming C4.

You might want to add support for something like this:
exceptions:
GDI_MAMMOTH_TANK
REMOTE C4 ALLOWED: 5
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #464465 is a reply to message #463867] Thu, 15 March 2012 22:24 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Found a little issue. If you toss a c4 on your own purchase terminal, it gets auto-disarmed. Which sucks because if you're trying to save your AGT on Field and there's a bunch of techs in your AGT and you toss a remote to kill them, what if it lands on the PT and it disarms Dont Get It

http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #464473 is a reply to message #464465] Fri, 16 March 2012 06:18 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Xpert wrote on Thu, 15 March 2012 22:24

Found a little issue. If you toss a c4 on your own purchase terminal, it gets auto-disarmed. Which sucks because if you're trying to save your AGT on Field and there's a bunch of techs in your AGT and you toss a remote to kill them, what if it lands on the PT and it disarms Dont Get It

Nice catch, I'll add code to do an exception for PTs, please report any further issues. http://www.renegadeforums.com/images/message_icons/icon10.gif


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] FlamingC4Prevention [message #464489 is a reply to message #463867] Fri, 16 March 2012 09:27 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Uploaded a new version with a fix for this.

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] FlamingC4Prevention [message #468828 is a reply to message #463867] Sat, 09 June 2012 13:03 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Uploaded the plugin to Beta 5. I haven't tested it but it should work. All I did was change things like Is_C4 to As_C4GameObj() so that it accepts it.


EDIT: Removed file. Look at Iran's first post.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder

[Updated on: Sun, 15 July 2012 14:02]

Report message to a moderator

Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #468832 is a reply to message #463867] Sat, 09 June 2012 13:09 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Thanks! I'll update the source code once I stop being a lazy fuck.

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] FlamingC4Prevention [message #469303 is a reply to message #468832] Thu, 14 June 2012 21:31 Go to previous messageGo to next message
eatcow0 is currently offline  eatcow0
Messages: 30
Registered: September 2008
Location: Oregon USA
Karma: 0
Recruit
I was runing this and it kept crashing the server on Cairo with no other plugins running. Just a fyi Smile
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #469307 is a reply to message #469303] Thu, 14 June 2012 22:08 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

eatcow0 wrote on Thu, 14 June 2012 23:31

I was runing this and it kept crashing the server on Cairo with no other plugins running. Just a fyi Smile


I will wait to take a crack at this, because xpret already tried to update it, so I will give him a chance to fix it before I take a look at it.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #469667 is a reply to message #463867] Sat, 23 June 2012 19:47 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Try this.

EDIT: Removed file. Look at Iran's first post.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder

[Updated on: Sun, 15 July 2012 14:02]

Report message to a moderator

Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #469802 is a reply to message #463867] Sun, 24 June 2012 17:49 Go to previous messageGo to next message
YesNoMayb is currently offline  YesNoMayb
Messages: 176
Registered: February 2012
Karma: 0
Recruit
I was just reading the first little bit of the topic post. This could be excellent if put on Jelly. There are still people who use flaming units and this would stop them from doing it.
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #469829 is a reply to message #469802] Mon, 25 June 2012 00:53 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
YesNoMayb wrote on Sun, 24 June 2012 20:49

I was just reading the first little bit of the topic post. This could be excellent if put on Jelly. There are still people who use flaming units and this would stop them from doing it.


Soon.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #469834 is a reply to message #463867] Mon, 25 June 2012 03:05 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
u should make it so PPAGE sends out a custom coloured message + another sound (that isn't the page sound) if you run custom scripts because 95% of the time the bot is PPAGE'ing me to tell to me that some faggot team donated me 50 credits

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] FlamingC4Prevention [message #469847 is a reply to message #469667] Mon, 25 June 2012 07:28 Go to previous messageGo to next message
eatcow0 is currently offline  eatcow0
Messages: 30
Registered: September 2008
Location: Oregon USA
Karma: 0
Recruit
Xpert wrote on Sat, 23 June 2012 19:47

Try this.


thanks!!!!
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #470620 is a reply to message #463867] Tue, 03 July 2012 04:36 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Updated with a new version with updated source.



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] FlamingC4Prevention [message #471689 is a reply to message #463867] Sat, 14 July 2012 09:22 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Uploaded v4, it fixes a crashing bug that I debugged based on a crashdump that Anomiski provided. I don't know how to reproduce the crash itself but I do know it crashed because I didn't handle a null pointer.

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] FlamingC4Prevention [message #472194 is a reply to message #463867] Tue, 24 July 2012 16:36 Go to previous messageGo to next message
Lazy5686 is currently offline  Lazy5686
Messages: 254
Registered: November 2007
Karma: 0
Recruit
This plugin MAY be causing crashes. We had it disabled for a few days then turned it back on and had a crash within the hour. Then another crash, and another...
Disabled it and haven't had one for the rest of the day.

Weird thing is that Iran says it is crashing in TT.dll


The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
http://i.imgur.com/7RiVG.jpg
Re: [SSGM 4.0 Plugin] FlamingC4Prevention [message #472195 is a reply to message #463867] Tue, 24 July 2012 16:40 Go to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Their are a few things causing crashes in tt.dll. That I have noticed.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Previous Topic: [SSGM 4.0 Plugn] SBH No Remote C4 Pickup
Next Topic: [Model Replacement] Nod Power Plant Interior
Goto Forum:
  


Current Time: Sun Dec 01 04:07:27 MST 2024

Total time taken to generate the page: 0.01320 seconds