ItsMods

Full Version: Weapon Name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Dears,

Please tell me, how can i get weapon name from weapon id and how can i detect player death with head shot.


Sincerely
I don't think if it is possible by "addon-way". Ask @Nukem or @barata to get addresses for it.
weapon name from weapon id wat?
(10-07-2013, 19:20)DidUknowiPwn Wrote: [ -> ]weapon name from weapon id wat?

Don't post f*cking stupidness messages there like how you are doing it on 4d1 forums.
>weapon name from weapon id
Makes 0 sense.
(10-07-2013, 19:54)DidUknowiPwn Wrote: [ -> ]>weapon name from weapon id
Makes 0 sense.

it actually makes sense because with the addon you can use a function (GetWeapon) to get the id from a weapon, but you can't get the name from the id. This would be useful for adding a camo or attachment to the weapon for example.
something like that
Code:
client.other.currentWeapon = GetWeapon(GetWeaponNameFromID(client.other.currentWeapon) + "_camo01")

I'm not the best in that memory editing stuff. Like @SailorMoon said, ask someone like @Nukem or @barata .
(10-07-2013, 20:19)[HARD] Tony. Wrote: [ -> ]http://vk.com/video219529353_166391778

The hell is this?
hey bros,

At 1st step thanks for your replies, after read some document, i think i find way for solve this problem, please tell me is it good or not ?
My solution: i must have a dictionary<String, int> variable and put gun game, gun id as default value, then in OnChangeWeapon override method, i must check current weaponid is exists in my default variable or not, if be ture i can find weapon name, if it 's false, my function will thorw UnknownGunName value Smile, so it 's my solution for solve it but i don't write these code yet.


Sincerely, iRoNinja