AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   need help, weapon slots (https://forums.alliedmods.net/showthread.php?t=54491)

B1ondu 04-27-2007 15:49

need help, weapon slots
 
well...

How to create new weapon slots or how to hack weapon slots using amxx ?

Thankx

--Blondu

VEN 04-28-2007 04:52

Re: need help, weapon slots
 
Hook WeaponList message in plugin_precache() and alter it's content. http://wiki.amxmodx.org/index.php/Ha..._1_Game_Events

.\amxmodx\scripting\include\messages.inc

Though it's not possible to assign custom sprite to a client HUD weapon list.

Orangutanz 04-28-2007 17:42

Re: need help, weapon slots
 
Quote:

Originally Posted by VEN
Though it's not possible to assign custom sprite to a client HUD weapon list.

It is possible, however it has to be done clientside by manually editing the hud.txt

VEN 04-29-2007 03:01

Re: need help, weapon slots
 
Actually i was talking about AMX Mod X. Of course it's possible clientside.

Orangutanz 04-29-2007 17:32

Re: need help, weapon slots
 
Just re-thinking about this, the only change you have to make clientside is the actual DeathMsg icon by the weapon, which has to be done manually by clients.

You can create custom weapon(s) using the HL weapon slot system. Just have to remember (1<<2) is the only free weapon index on CS. Also with other proper messages you can get the weapon to showup when you pick it up and ammo you pickup (if I remember correctly there is a special offset for ammo). 376 springs to mind, I can't remember why I needed this now but I did when I worked on the 1st incarnation of WeaponMod.


All times are GMT -4. The time now is 06:42.

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