Weapon Model Invisible

Started by MaHy
23 Feb 2010, 14:23
Page 1 of 1
23 Feb 2010, 14:23

A plugin to make weapon model invisible to the player who used
/wpninvis command.

Download

25 Feb 2010, 17:19

Why?

25 Feb 2010, 17:22

because he learned to script.

25 Feb 2010, 18:24

lol I am annoyed when my weapon is not vissible..

25 Feb 2010, 20:54(edited 27 Feb 2010, 21:39)

You don't need to store weapon model to restore it, just make the player deploy his current weapon and model will be set back.
If you really want to store it, just store value of pev_viewmodel, i think there is no need to decode it and to recode it later.

Also, filter the wepaon id in CurWeapon event so you only need to set model when the weapon change (or hook Ham_Item_Deploy for more efficienty).

FYI, set first cell of a string is enough to "empty" it. (but you don't need this if you make previous changes ;)

Here is my version, use it if you want :

Author : Following plugin is not safe for demos (unless you don't use the command when you record)

Invisible Weapons

27 Feb 2010, 16:55

hm.. in global var I put model name of weapon which i take before set_pev(id, pev_viewmodel, 0);
I think that i cannot take model name of weapon after set_pev(id, pev_viewmodel, 0); becouse this remove weapon model

about filter weapon id: I did this, but after fm_strip_user_weapons and then given weapon with same id this weapon become a visible

27 Feb 2010, 19:41

be aware that demos using this plugin wont be accepted

24 Oct 2010, 17:51

Originally posted by doktor
You don't need to store weapon model to restore it, just make the player deploy his current weapon and model will be set back.
If you really want to store it, just store value of pev_viewmodel, i think there is no need to decode it and to recode it later.

Also, filter the wepaon id in CurWeapon event so you only need to set model when the weapon change (or hook Ham_Item_Deploy for more efficienty).

FYI, set first cell of a string is enough to "empty" it. (but you don't need this if you make previous changes ;)

Here is my version, use it if you want :

Author : Following plugin is not safe for demos (unless you don't use the command when you record)

Invisible Weapons



what is the command to make youre weapon invisible and visible ???, where should i write it? in con och say ??

28 Oct 2010, 02:41

BUMP!

Page 1 of 1

Reply

Please log in to post replies.