Weapon Model Invisible
A plugin to make weapon model invisible to the player who used
/wpninvis command.
Download
Why?
because he learned to script.
lol I am annoyed when my weapon is not vissible..
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
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
be aware that demos using this plugin wont be accepted
Originally posted by doktorYou 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 ??
BUMP!
Please log in to post replies.