You can try this, but I haven't tested.
Code:
public client_PreThink(id) {
if(!is_user_alive(id)) {
return PLUGIN_CONTINUE;
}
new button = entity_get_int(id,EV_INT_button);
if(button & IN_ATTACK) {
entity_set_int(id,EV_INT_button,button & ~IN_ATTACK);
entity_set_int(id,EV_INT_weaponanim,0);
}
return PLUGIN_CONTINUE;
}
It's your basic stop firing code with the added reset of weaponanim, but you would still hear the sound and muzzle flash. I suppose you could catch the emitting of the sound with FakeMeta and stop it, but it would be hard (with so many different firing sounds).
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS