View Single Post
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-02-2018 , 18:12   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #27

Quote:
Originally Posted by metal_upa View Post
What about dual gun weapons?
For example i wanna make dual mp5 weapon. How? i see no replacement for Dual-Elites weapon.
That would require a bit code.
RegisterWeaponForward on primary attack post and then send weapon animation.
animation will be left or right depends on which was previous. you can do this by using custom entity variable than is not used by original dll. for example EV_INT_iuser4/pev_iuser4 and set 1/0. 0 will be left 1 will be right.

Example:

Code:
MyHookedForward(Weapon)
{
static IsRight = entity_get_int(Weapon, EV_INT_iuser4);
SendWeaponAnim(Weapon, IsRight ? <YourRightAnimation> : <YourLeftAnimation>);
entity_set_int(Weapon, EV_INT_iuser4, !IsRight);
}
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline