View Single Post
metal_upa
Senior Member
Join Date: Jun 2016
Old 11-08-2018 , 14:48   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #28

Quote:
Originally Posted by Ghosted View Post
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);
}
You module crash too much on rehlds server, no error log given. I just create a simple weapon replacement for rifle.

BTW this is just a basic weapon replacement:
Spoiler


Can you make a complete documentation of this module, your wiki seems to be out dated.
metal_upa is offline