Holding shield with knife
I have a knife only mod that may involve holding a shield also.
Dammit, can anyone think of a way to force the shield on the round start.... Problem: When shields are off. Sometimes it switches to your primary weapon, which you can see by the ammo amount. When actually your guy is holding a knife and he can stab and such. No problem so far. However if i were to turn shields on and the player still has primary out (check the ammo) I cant give the player a shield. Do you get what I'm saying??? Im tired and cant think straight. Any ideas are appreciated. |
Re: Holding shield with knife
Do you mean, when a player has a primary gun, you cant give him a shield?
|
Re: Holding shield with knife
Kind of... the game must register it as a primary weapon because I have ie: 30 ammo left while my guy is holding his knife. It acts normally as a knife, but I am unable to give him a shield.
|
Re: Holding shield with knife
your still not 100% clear... ammo shouldnt effect a shield and whether the following could be used.
give_item(id,"CSW_SHIELD") thats what it is called right? |
Re: Holding shield with knife
That is what's called... it must be hard to picture...
At the begining of the round, my player is holding his knife. However the ammo of the hud shows my primary ammo It must not register that my player is holding his knife, therefore it thinks im holding my primary. Which makes it so i cant hold a shield. |
Re: Holding shield with knife
If you are doing this
Code:
Code:
|
Re: Holding shield with knife
oops, i forgot about that... use weapon, not csw
|
Re: Holding shield with knife
Maybe him drop his primary weapon, then give him a shield.
|
Re: Holding shield with knife
Quote:
|
Re: Holding shield with knife
Why can't you make the player drop his/her primary or strip_user_weapons then give the knife and shield?
But this might not be the best solution |
| All times are GMT -4. The time now is 00:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.