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

