Raised This Month: $ Target: $400
 0% 

Force Player to Shoot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-25-2009 , 14:12   Re: Force Player to Shoot
Reply With Quote #1

ExecuteHam(Ham_Weapon_PrimaryAttack, iWeaponEnt ); ?
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-25-2009 , 14:29   Re: Force Player to Shoot
Reply With Quote #2

Quote:
Originally Posted by arkshine View Post
ExecuteHam(Ham_Weapon_PrimaryAttack, iWeaponEnt ); ?
That could be a way, but if the player has a gun on, and already hold on +attack, the gun won't shot again (except for glock @ semi-auto)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-25-2009 , 14:31   Re: Force Player to Shoot
Reply With Quote #3

Thanks, it works!
But, the animations and the sounds aren't played.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-25-2009 , 15:01   Re: Force Player to Shoot
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
Thanks, it works!
But, the animations and the sounds aren't played.
Why not just play them at the same time that you execute the forward?

Code:
ExecuteHam(Ham_Weapon_PrimaryAttack, iWeaponEnt); set_pev(id, pev_weaponanim, shot's animation's value); emit_sound(0, ..... "weapons_weaponname_[1|2].wav" ....);
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode