AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Hidden:Source] Radio Taunts (https://forums.alliedmods.net/showthread.php?t=82071)

paegus 12-16-2008 18:47

[Hidden:Source] Radio Taunts
 
4 Attachment(s)
Written specifically for Hidden:Source Beta 4b.

Code:

/*
 * Hidden:SourceMod - Radio Proximity Taunts
 *
 * Description:
 *  Plays radiotaunts#.mp3 over the IRIS's radio if a corpse_ragdoll is close enough when a hidden taunts.
 *
 * Console Variables:
 *  hsm_rpt_chat [0/1] : Successfully radioed taunts appear in global chat? 0: No, 1:Yes. Default: 1
 *  hsm_rpt_auto [0~1] : Chance for Hidden to automatically taunt when he kills. 0: Never. 1: Always. Default: 0
 *  hsm_rpt_last [0~1] : Alternate chance for Hidden to automatically taunt on the 2nd to last possible kill. 0: No alternate. 1: Always. Default: 0.333333
 *
 * Commands:
 *
 * Change-log:
 *  v1.0.2
 *  Set last-kill auto-taunt to be only "You're Next" (or "I'm coming for you" if you've altered the server's sound file. Manual taunts remain.
 *  Fixed error on World damage.
 *  Resolved inability to compile online due to missing MaxClients dynamic var.
 *  v1.0.1
 *  Added chances to automatically taunt on each kill and 2nd to last possible kill.
 *  Removed dependency on hidden & toteam includes.
 *  v1.0.0
 *  Initial release.
 *
 * Known Issues:
 *
 * To-Do:
 *
 * Contact:
 *  Paegus: [email protected]
 *  SourceMod: http://www.sourcemod.net
 *  Hidden:Source: http://www.hidden-source.com
 */


Liam 12-18-2008 08:28

Re: [Hidden:Source] Radio Taunts
 
May want to check your code. It doesn't compile.

paegus 12-18-2008 08:32

Re: [Hidden:Source] Radio Taunts
 
what error does it throw up?
it compiles fine on my box :S

e: hmm though it may be because i'm using a more recent build... for in-line floating point math and the like?

Liam 12-18-2008 08:36

Re: [Hidden:Source] Radio Taunts
 
I dunno, I tried it with the web compiler and it failed.

paegus 12-18-2008 09:43

Re: [Hidden:Source] Radio Taunts
 
well frankly, a compiler that doesn't give you any errors message should be taken out back and shot.


in other news it was missing the dynamically defined MaxClients variable.

Grifza 06-03-2009 10:41

Re: [Hidden:Source] Radio Taunts
 
I wanted to change the hsm_rpt_last variable, and it wouldn't compile. It seems it's getting the same error as what you said you fixed. Maybe you didn't update the source?

Error below:


Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.2.1
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

/home/groups/sourcemod/upload_tmp/phpsDI2Jw.sp(68) : error 021: symbol already defined: "MaxClients"
/home/groups/sourcemod/upload_tmp/phpsDI2Jw.sp(117) : error 022: must be lvalue (non-constant)

2 Errors.

paegus 06-05-2009 02:57

Re: [Hidden:Source] Radio Taunts
 
you can just delete those 2 line. they were for backward compatibility and are no longer required.

Grifza 06-05-2009 18:46

Re: [Hidden:Source] Radio Taunts
 
Quote:

Originally Posted by paegus (Post 841984)
you can just delete those 2 line. they were for backward compatibility and are no longer required.

I tried finding the lines, but, to no success. I don't write plugins, so I have no idea what to look for.

Is it at all possible to fix the source, and re-up it?

Would be great if you could.

Thanks. :)

paegus 06-06-2009 06:29

Re: [Hidden:Source] Radio Taunts
 
download the _sm12 version i've added to the to the 1st post.

Grifza 06-06-2009 16:53

Re: [Hidden:Source] Radio Taunts
 
Quote:

Originally Posted by paegus (Post 842898)
download the _sm12 version i've added to the to the 1st post.

Thanks! :mrgreen:


All times are GMT -4. The time now is 20:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.