AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Gore plugin help. (https://forums.alliedmods.net/showthread.php?t=13338)

eggbert 05-12-2005 21:08

Gore plugin help.
 
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

sambro 05-12-2005 21:46

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. :(

eggbert 05-12-2005 22:11

I changed the link. Thanks for pointing that out.

eggbert 05-12-2005 22:25

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

KyleD 05-13-2005 01:30

Uh...#include <tsx>

eggbert 05-13-2005 07:07

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

eggbert 05-13-2005 16:32

Dang it. It still doesn't want to do the gib explosion.

sambro 05-13-2005 22:38

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. :P

jtp10181 05-14-2005 08:41

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)


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

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