Make weapons not dropable
Hello,
I am running a gamemode that doesn't really allow weapons to be dropped. When a player dies, it's supposed to drop like usually. But how can I make it impossible to press "g" to drop a weapon? |
Re: Make weapons not dropable
+ Hide the one who is talking in voice chat, the voice chat should work, but you shouldn't be able to see the one talking.
|
Re: Make weapons not dropable
PHP Code:
|
Re: Make weapons not dropable
I got it working, but two problems.
First, I want the weapon to be dropped on death. But not if pressing to drop it, with e.g "g". Also, it's strange but the gun started acting weird after I tried my script. Quote:
|
Re: Make weapons not dropable
Check IsPlayerAlive in the weapon drop callback.
If that doesnt work. Hook weapon drop on spawn and unhook on death via the takedamagealive foward. |
Re: Make weapons not dropable
Oh yea, stupid me. That should work.
However, when I try to drop the weapon with my script, it starts acting weird. The animations of the gun stops showing up. I can still shoot and reload, but it looks weird. Why is that? |
Re: Make weapons not dropable
Probably prediction errors.
Try on drop. Wait one frame. Equip the weapon again. |
Re: Make weapons not dropable
PHP Code:
|
Re: Make weapons not dropable
Sorry, I don't know how to do all this. I am new to this. Can someone help me a bit with the piece of code?
|
Re: Make weapons not dropable
Quote:
|
All times are GMT -4. The time now is 17:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.