The dod\classes directory contains a description of each weapon, you can
get the exact weapon names from these files. Below is the defines used
to map weapon types to ids.

#define WEAPON_NONE                             0
#define WEAPON_AMERKNIFE                1
#define WEAPON_GERKNIFE                 2
#define WEAPON_COLT                             3
#define WEAPON_LUGER                    4
#define WEAPON_GARAND                   5
#define WEAPON_SCOPEDKAR                6
#define WEAPON_THOMPSON                 7
#define WEAPON_MP44                             8
#define WEAPON_SPRING                   9
#define WEAPON_KAR                              10
#define WEAPON_BAR                              11
#define WEAPON_MP40                             12
#define WEAPON_HANDGRENADE      13
#define WEAPON_STICKGRENADE     14
#define WEAPON_STICKGRENADE_EX  15
#define WEAPON_HANDGRENADE_EX   16
#define WEAPON_MG42                             17
#define WEAPON_30CAL                    18
#define WEAPON_SPADE                    19
#define WEAPON_M1CARBINE            20
#define WEAPON_MG34                             21
#define WEAPON_GREASEGUN                22
#define WEAPON_FG42                             23
#define WEAPON_K43                              24
#define WEAPON_ENFIELD                  25
#define WEAPON_STEN                             26
#define WEAPON_BREN                             27
#define WEAPON_WEBLEY                   28
#define WEAPON_BAZOOKA                  29
#define WEAPON_PSCHRECK                 30
#define WEAPON_PIAT                             31

Punisher wrote:

I will do if there is no other solution

Is there any dod header file with all weapon names then ? that would be
helpful

if not it will take some more time to get all weapon names

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alfred
Sent: Friday, May 30, 2003 9:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Weapon Names in DoD 1.0 from withing a MetaMod
Plugin ( StatsMe to be exact )


Why don't you want to hard code the weapon names? I know its not elegant, but I reckon it would be safer than any hack to pull the name from the engine.

Punisher wrote:



Hi,


Like you all know ( or not ) , StatsMe gathers in-game realtime Statistics
from players.
So it has per-weapon stats. The problem now in DoD 1.0 is that i cant

figure


out the weapon names.
In prior versions, or in other HL Mods ( CS / TFC ) the weapon name is

send


with the WeaponList Engine msg to MetaMod.

In DoD 1.0 it only sends the weapon id, and some more more-or-less useless
infos.

Is there any engine function to get the Weapon name from the ID ? or any
other way _without_ hardcoding the weapon names ?


-Punisher UA StatsMe Coordinator


_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives,

please visit:


http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to