Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon)
- {
- if (g_bEnabled && client == Hale)
- {
- if (Special == VSHSpecial_HHH)
- {
- if (VSHFlags[client] & VSHFLAG_NEEDSTODUCK)
- {
- buttons |= IN_DUCK;
- }
- if (HaleCharge >= 47 && (buttons & IN_ATTACK))
- {
- buttons &= ~IN_ATTACK;
- return Plugin_Changed;
- }
- }
- if (Special == VSHSpecial_Bunny)
- {
- int weap = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary);
- if (weap == GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon") && SpecialWeapon != weap)
- {
- buttons &= ~IN_ATTACK;
- return Plugin_Changed;
- }
- }
- if (Special == VSHSpecial_Agent) {
- if (buttons & IN_ATTACK3) {
- if (IsNextTime(e_flNextMedicCall)) {
- float pos[3];
- GetEntPropVector(client, Prop_Send, "m_vecOrigin", pos);
- SetNextTime(e_flNextMedicCall, 3.0);
- EmitAmbientSound(Agent_Whistle, pos, client, SNDLEVEL_TRAFFIC, SND_NOFLAGS, SNDVOL_NORMAL);
- }
- }
- }
- }
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement