Force a player to shoot. -
Dayrion - 13.10.2016
Heeeeey'.
I was wondering if it's possible to force a player to shoot.
Example:
The player do the cmd /grenade
The script give him a grenade and force the player to throw the grenade.
If it's possible, can you give me 'trail, track' to help me. Thanks guyz.
Re: Force a player to shoot. -
Threshold - 13.10.2016
No, you cannot force a player to physically shoot a bullet/throw a projectile. You can however create a system whereby an animation is played, an object is created and moved, and an explosion is created.
Re: Force a player to shoot. -
Dayrion - 13.10.2016
Alright. There is a way to detect if a player throw a grenade, molotov, etc ..?
OnPlayerWeaponShot isn't called. /:
EDIT: Nvm, I can do it with KEYS but I can't get coordinates of the thrown grenade or molotov. '-'
Re: Force a player to shoot. -
Owen007 - 13.10.2016
Its not possible u cant force a player.
Re: Force a player to shoot. -
Dayrion - 13.10.2016
Quote:
Originally Posted by Owen007
Its not possible u cant force a player.
|
Quote:
Originally Posted by Dayrion
Alright. There is a way to detect if a player throw a grenade, molotov, etc ..?
OnPlayerWeaponShot isn't called. /:
EDIT: Nvm, I can do it with KEYS but I can't get coordinates of the thrown grenade or molotov. '-'
|
Re: Force a player to shoot. -
Dayrion - 14.10.2016
UP. :3
Re: Force a player to shoot. -
Threshold - 14.10.2016
What are you asking? It isn't possible. Are you asking how to get the coordinates of a thrown projectile? Again, you can't accurately. You can do it by scripting your own system, but seeing as players can hold the mouse button to throw it further, there's no real way to do this.
One possible option is detect when the player holds and then releases the fire button. Then there's the annoyance of distance per duration held etc...
Re: Force a player to shoot. -
Dayrion - 14.10.2016
Alright ! Thanks you !
Another question (yea, I know I'm pretty annoying). There is a "simple" way to detect colision without include, plugins or stuff like that?
Re: Force a player to shoot. -
RedMF - 14.10.2016
put on your server.cgf
Re: Force a player to shoot. -
Dayrion - 15.10.2016
Quote:
Originally Posted by RedMF
|

Wrong thread.