xCometMods
Modder
- Messages
- 68
- Reaction score
- 40
- Points
- 803
Here is the code thanks to thahitcrew:
This does work very well without aimbot.
Video:
Code:
ToggleRecoil()
{
if( self.recoil == 0 )
{
self.recoil = 1;
self iprintln( "No recoil ^2ON" );
self thread DoRecoil();
}
else
{
self.recoil = 0;
self iprintln( "No recoil ^1OFF" );
self.entity delete();
self notify("end_norecoil");
}
}
DoRecoil()
{
self endon("death");
self endon("disconnect");
self endon("end_norecoil");
for(;;)
{
if( self attackbuttonpressed())
{
self.entity = spawn("script_origin", self.origin);
self.entity.angles = self.angles;
self linkto( self.entity );
}
else
{
if(!(self attackbuttonpressed()))
{
self.entity delete();
}
}
wait 0.1;
}
}
Video:
Last edited: