Posts: 186
Threads: 39
Joined: Apr 2012
Hi,
I have need help for weapon system, I hope you help me
It's possible do not active the fire ?
It's possible to detect when player loses a weapon (more munition),
for give this weapon with 99999 ammos and if player have 99999 ammo,
it's not possible to active the fire.
It's possible ?
I've try to freeze player, tp player at 0.05 x,y different, ClearAnimations(), nothing works..
Have you a idea ?
Sorry for my english, i'm french..
Thanks
Posts: 186
Threads: 39
Joined: Apr 2012
You have any idea please ?
Posts: 1,164
Threads: 20
Joined: Oct 2008
Reputation:
0
You can restrict the weapon damages by many ways actually,
You can either return 0 at onplayerweaponshot (which will only work on weapons that are shot, of course), Set the players team to an equal team so they don't damage theyselves then process the damage at OnPlayerTakeDamage, you can also disable the damage by the previous way and do a completely scriptsided damage.
As for the player losing ammo, yes you can, either by a timer or OnPlayerUpdate (more accurate).
Posts: 186
Threads: 39
Joined: Apr 2012
Hello,
Thanks you for this responses, except i not want disable the damage, but disable shooting.
Posts: 1,164
Threads: 20
Joined: Oct 2008
Reputation:
0
I see.
Due to sync issues you will not be able to freeze the player and unfreeze him back, players will still see him as he shot (even though that in his screen he didn't). Teleporting the player to his own position might work but I believe you will still have such sync issues.
There is no reliable way to prevent a player from shooting from the perspective of all clients.
Posts: 186
Threads: 39
Joined: Apr 2012
Ok...
The only way it's freeze player and unfreeze when stop player to aim weapon ?
Posts: 186
Threads: 39
Joined: Apr 2012
Quote:
Originally Posted by Noliax8
Ok...
The only way it's freeze player and unfreeze when stop player to aim weapon ?
|
No idea ?