AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [resolved] Custom Weapon Slots in The Specialists (https://forums.alliedmods.net/showthread.php?t=49460)

stupok 01-04-2007 16:36

[resolved] Custom Weapon Slots in The Specialists
 
I have a question about custom weapons in the specialists. I've searched the specialists forums and amx forums, but I can't find any information on custom weapon slots. In the tsconst.inc file, there is this line:

Code:

#define TSMAX_WEAPONS 44        // 37 + throwing knife + brekable + 5 custom weapon slots
This seems to suggest that there is some way to add custom weapons... I'm just wondering if this actually bears any significance. I'd like to attempt to make a custom weapon for The Specialists, and I thought there may be some method I'm unaware of since there are slots dedicated to "custom weapons".

Bad_Bud 01-04-2007 17:09

Re: Custom Weapon Slots in The Specialists
 
I like how they misspelled breakable.

I really don't know if you could make official custom weapons, but I know you could emulate some weapons fairly convincingly, it would just be a lot of work.

XxAvalanchexX 01-04-2007 19:33

Re: Custom Weapon Slots in The Specialists
 
The custom weapons are used for stat tracking. It doesn't create a weapon for you.

IE: If you have a plugin that makes you blow up on death, you can register a custom weapon for that explosion with custom_weapon_add, and when someone gets damaged by the explosion, use custom_weapon_dmg so that stats (and other plugins) can track it.

stupok 01-04-2007 19:42

Re: Custom Weapon Slots in The Specialists
 
tsx.inc doesn't have that function. Interesting anyways, thanks Avalanche.

XxAvalanchexX 01-04-2007 20:40

Re: Custom Weapon Slots in The Specialists
 
Quote:

Originally Posted by stupok69 (Post 423706)
tsx.inc doesn't have that function.

Mine does. But it's not listed in the funcwiki.


All times are GMT -4. The time now is 22:30.

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