Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Custom Kill Messages ALPHA
[SSGM 4.0 Plugin] Custom Kill Messages ALPHA [message #463989] Thu, 08 March 2012 12:30 Go to next message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
THIS IS AN ALPHA VERSION AND MIGHT CRASH OR LAG YOUR FDS.

This plugin replaces the normal kill messages for players running scripts.dll 2.9.2 or higher with custom versions that look like these:

KillerName <killed string> VictimName <squish string>
KillerName <killed string> VictimName with a HEAD SHOT!
KillerName <killed string> VictimName with a NECK SHOT!

Where <killed string> and <squish string> are randomly chosen from a list of strings you can configure. The source code contains a function to very accurately obtain what weapon was used to kill a player, but this function isn't used. Squishes might possibly not be detected accurately (using a hacky method to detect them), if that's the case please contact me.

You can contact me on renegadeforums.com under the nick iRANian.

Thanks to the Tiberian Technologies team and in particular StealthEye for adding the features to beta 4 that make this possible and for answering a lot of my questions.

To install this plugin set 'SendPlayerKillsToNewClients=' in server.ini to false, place 'CustomKillMessages.dll' in the root FDS folder and add an entry for it under [Plugins] in SSGM.ini. Then at the bottom of SSGM.ini add:

[CustomKillMessages_KilledStrings]
;These are the strings that are randomly chosen as the string to replace 'killed' with in 'KillerName killed VictimName'
01=beat the shit out of
02=politically massacred

[CustomKillMessages_SquishStrings]
;These are the strings that are randomly chosen as the string to replace 'squishstring' with in 'KillerName killed VictimName squishstring'
01=herp derp
02=SQUISH!


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 Kill Messages ALPHA [message #469122 is a reply to message #463989] Tue, 12 June 2012 03:16 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

Fixed the c4 and beacon to the new system.

Although I did find a error.

It's either when your a eng or a sak or havok.

Not for sure witch, but when we tested it I was a eng and he was a sak and it crashed the server when he killed me, and when I was a havok and killed him as a eng.


It also says was killed by a headshot even if it was a foot shot.


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] Custom Kill Messages ALPHA [message #469147 is a reply to message #469122] Tue, 12 June 2012 14:11 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)
DistrbdSt0rm21 wrote on Tue, 12 June 2012 06:16

Fixed the c4 and beacon to the new system.

Although I did find a error.

It's either when your a eng or a sak or havok.

Not for sure witch, but when we tested it I was a eng and he was a sak and it crashed the server when he killed me, and when I was a havok and killed him as a eng.


It also says was killed by a headshot even if it was a foot shot.


Then you did something wrong.


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] Custom Kill Messages ALPHA [message #469155 is a reply to message #463989] Tue, 12 June 2012 15:35 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

All I did was changed the Is_C4 and Is_Beacon

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] Custom Kill Messages ALPHA [message #469159 is a reply to message #463989] Tue, 12 June 2012 16:13 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

I don't know, but:

	if (Explosion)
	{
		if (Is_Beacon(Explosion))
		{
			const char* Beacon = Get_Translated_Preset_Name(Explosion);
			KillWeapon = Beacon;
			delete []Beacon;
		}
		else if (Is_C4(Explosion))
		{
			int C4Mode = Get_C4_Mode(Explosion);
			if (C4Mode == 1)
			{
			KillWeapon = "Remote C4";
			}
			else if (C4Mode == 2)
			{
				KillWeapon = "Timed C4";
			}
			else if (C4Mode == 3)
			{
				KillWeapon = "Proxy C4";
			}
		}
	}


	if (Explosion)
	{
		if (obj->As_PhysicalGameObj() && obj->As_PhysicalGameObj()->As_BeaconGameObj() )
		{
			const char* Beacon = Get_Translated_Preset_Name(Explosion);
			KillWeapon = Beacon;
			delete []Beacon;
		}
		else if (obj->As_PhysicalGameObj() && obj->As_PhysicalGameObj()->As_C4GameObj() )
		{
			int C4Mode = Get_C4_Mode(Explosion);
			if (C4Mode == 1)
			{
			KillWeapon = "Remote C4";
			}
			else if (C4Mode == 2)
			{
				KillWeapon = "Timed C4";
			}
			else if (C4Mode == 3)
			{
				KillWeapon = "Proxy C4";
			}
		}
	}


The only difference is where the Is_C4 and Is_Beacon is. Notice how you check a completely different object than Iran's code does...

EDIT: Oh NOW I see, you check the GameObject "obj" to see if it's a C4/Beacon or not, and then Iran's code goes on doing its thing with the Explosion object.

I don't mean to be rude, but you obviously have no clue what you are doing.


-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

[Updated on: Tue, 12 June 2012 16:14]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Custom Kill Messages ALPHA [message #469160 is a reply to message #463989] Tue, 12 June 2012 16:13 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)
You're checking objects. You aren't even checking the right variable. You didn't check for explosion.

Don't assume you can just copy and paste a line based on what I posted in a different topic, and think you've "fixed" 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] Custom Kill Messages ALPHA [message #469165 is a reply to message #469160] Tue, 12 June 2012 17:11 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

Xpert wrote on Tue, 12 June 2012 18:13

You're checking objects. You aren't even checking the right variable. You didn't check for explosion.

Don't assume you can just copy and paste a line based on what I posted in a different topic, and think you've "fixed" it.



1 I never said I did, as I'm still learning C++.
2 I just thought I would make it easyer on Iran rather then just telling him what he needs to do.

So unless one of you guys want to fix it for him or wait for him to fix it then don't bitch at me.

EDIT: even though I'm not gonna release anything, I'm still gonna finish what I started.

Don't know if Iran has already fixed it or not, please let me know and I will remove it.

Have not tested yet.



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

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

Cookie Jar

Suicide

[Updated on: Thu, 19 July 2012 06:07]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Custom Kill Messages ALPHA [message #472008 is a reply to message #463989] Fri, 20 July 2012 03:57 Go to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

bump Thumbs Up

updated my post above, IRAN If you already fixed it let me know and I'll remove it.


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

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

Cookie Jar

Suicide
Previous Topic: [SSGM 4.0 Plugin] Leave Deaths Exploit Fix
Next Topic: [SSGM 4.0 Plugn] SBH No Remote C4 Pickup
Goto Forum:
  


Current Time: Thu Mar 28 17:11:12 MST 2024

Total time taken to generate the page: 0.00724 seconds