Raised This Month: $ Target: $400
 0% 

Gore plugin help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eggbert
Junior Member
Join Date: Jan 2005
Old 05-12-2005 , 21:08   Gore plugin help.
Reply With Quote #1

Code:
// ##################################################################### // ##     Change which weapons cause GIB explosions on death HERE     ## // ##################################################################### public gib_wpncheck(iWeapon) {     switch (iWeapon) {         case CSW_P228           : return false         case CSW_SCOUT          : return false         case CSW_HEGRENADE      : return true         case CSW_XM1014     : return false         case CSW_MAC10          : return false         case CSW_AUG            : return false         case CSW_SMOKEGRENADE       : return true         case CSW_ELITE      : return false         case CSW_FIVESEVEN      : return false         case CSW_UMP45          : return false         case CSW_SG550          : return false         case CSW_GALI           : return false         case CSW_FAMAS          : return false         case CSW_USP            : return false         case CSW_GLOCK18        : return false         case CSW_AWP            : return false         case CSW_MP5NAVY        : return false         case CSW_M249           : return false         case CSW_M3         : return false         case CSW_M4A1           : return false         case CSW_TMP            : return false         case CSW_G3SG1          : return false         case CSW_FLASHBANG      : return true         case CSW_DEAGLE     : return false         case CSW_SG552          : return false         case CSW_AK47           : return false         case CSW_P90            : return false     }     return false }


Here we have the weapon ids and if they cause gib explosion or not . . .

I would like to know what the weapon Ids are for The Specialists Mod or where I could find a list of them so that I could change them. Also I would like to know where the damage is defined to 250 so that I could lower it to 100.
Quote:
1.1 changes ( by |2ob ) :
*ported to AMX Mod X
*gib explosion happens after a damage higher than 250
You can find the plugin and .sma files here:
http://forums.alliedmods.net/showthr...p?t=2039+blood

Thanks, and if this is too vague then please say so.

~David
__________________
Yoshimi's Server: 66.41.107.253:27020
http://eggbert.org
eggbert is offline
sambro
Member
Join Date: May 2005
Old 05-12-2005 , 21:46  
Reply With Quote #2

The list of TS weapon id's can be found in tsconst.inc (in your includes folder).

I looked at that link you provided, it's different to what you're describing, so I can't help you with setting the threshold to 100.
sambro is offline
Send a message via MSN to sambro
eggbert
Junior Member
Join Date: Jan 2005
Old 05-12-2005 , 22:11  
Reply With Quote #3

I changed the link. Thanks for pointing that out.
__________________
Yoshimi's Server: 66.41.107.253:27020
http://eggbert.org
eggbert is offline
eggbert
Junior Member
Join Date: Jan 2005
Old 05-12-2005 , 22:25  
Reply With Quote #4

Bah. I won't lie. I don't know anything about coding. So why can't I just add in the values for TS weapons and set it to 'true' IE:
Code:
// ##################################################################### // ##     Change which weapons cause GIB explosions on death HERE     ## // ##################################################################### public gib_wpncheck(iWeapon) {     switch (iWeapon) {         case TSW_DEAGLE         : return true         case TSW_AK47           : return true         case TSW_M60E3          : return true         case TSW_KUNG_FU        : return true         case TSW_M4A1           : return true         case TSW_SAWED_OFF      : return true     }     return false
Heres my problem:
http://img79.echo.cx/my.php?image=argh0db.png
__________________
Yoshimi's Server: 66.41.107.253:27020
http://eggbert.org
eggbert is offline
KyleD
Member
Join Date: Mar 2005
Location: Anchorage, AK
Old 05-13-2005 , 01:30  
Reply With Quote #5

Uh...#include <tsx>
__________________
KyleD is offline
Send a message via MSN to KyleD
eggbert
Junior Member
Join Date: Jan 2005
Old 05-13-2005 , 07:07  
Reply With Quote #6

Great idea. I have no clue why I didn't think of that!

Perhaps because I honest to god have NEVER done any small script
__________________
Yoshimi's Server: 66.41.107.253:27020
http://eggbert.org
eggbert is offline
eggbert
Junior Member
Join Date: Jan 2005
Old 05-13-2005 , 16:32  
Reply With Quote #7

Dang it. It still doesn't want to do the gib explosion.
__________________
Yoshimi's Server: 66.41.107.253:27020
http://eggbert.org
eggbert is offline
sambro
Member
Join Date: May 2005
Old 05-13-2005 , 22:38  
Reply With Quote #8

I'd help you, but I don't have TS

Try checking your server console for any error messages, also, when compiling the plugin, warnings can actually lead to errors in execution.

For example, a Tag Mismatch warning can result in giving a player a maxspeed of 12121323523423 instead of 300.4.
sambro is offline
Send a message via MSN to sambro
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-14-2005 , 08:41  
Reply With Quote #9

Quote:
Also I would like to know where the damage is defined to 250 so that I could lower it to 100.
Quote:
* - Added new CVAR to adjust the HP loss that triggers a GIB explosion
Quote:
New CVAR: amx_gore_exphp (default 200)
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:41.


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