• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Weapon Name
#1
Question 
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
[Image: b_560_95_1.png][Image: b_560_95_1.png][Image: b_560_95_1.png]
  Reply
#2
I don't think if it is possible by "addon-way". Ask @Nukem or @barata to get addresses for it.
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 1 user says Thank You to Nekochan for this post:
  • iRoNinja
  Reply
#3
weapon name from weapon id wat?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#4
(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.
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 1 user says Thank You to Nekochan for this post:
  • DidUknowiPwn
  Reply
#5
>weapon name from weapon id
Makes 0 sense.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#6
(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 .
[-] The following 1 user says Thank You to 8q4s8 for this post:
  • iRoNinja
  Reply
#7
http://vk.com/video219529353_166391778
  Reply
#8
(10-07-2013, 20:19)[HARD] Tony. Wrote: http://vk.com/video219529353_166391778

The hell is this?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#9
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
[Image: b_560_95_1.png][Image: b_560_95_1.png][Image: b_560_95_1.png]
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 1,367 10-13-2013, 16:54
Last Post: hmann
  Mw2 weapon porting? Cuddlyedits 3 1,905 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 15,813 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 2,017 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 1,342 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 1,899 04-20-2013, 09:13
Last Post: Dominator56
  [Release] !weapon Plugin 8q4s8 40 12,608 03-24-2013, 17:02
Last Post: X-Track
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 18,230 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 1,551 03-01-2013, 02:30
Last Post: archit
Rainbow [Release] [Code] Akimbo weapon fix (new) Nekochan 11 4,377 02-27-2013, 23:49
Last Post: Krusty123

Forum Jump:


Users browsing this thread: 1 Guest(s)