[TF2] Trying to make the client to be forced to use weapon slot number 2.
So i update red2robotv2 all day (or sometimes)
though i'm trying to make a command in red2robotv2 named sm_gauntlet (become a steel gauntlet only in ROBOTS!) i removed those weapon slots (primary and secondary) but i want to make the command to force the player to use melee when becoming steel gauntlet, instead it switches to primary but stripped, pressing the melee weapon slot makes you use melee. is there a way to force the client to use melee? help is appreciated. Regards - Stormish Justice |
Re: [TF2] Trying to make the client to be forced to use weapon slot number 2.
Did you strip ALL the weapons first, and then give them the melee only?
Check how TF2BWR does it (too lazy to check myself). |
Re: [TF2] Trying to make the client to be forced to use weapon slot number 2.
First, get the melee weapon on the player:
Code:
new iWeapon = GetPlayerWeaponSlot(iClient, 2);Then force the player to switch to it: Code:
EquipPlayerWeapon(iClient, iWeapon); |
Re: [TF2] Trying to make the client to be forced to use weapon slot number 2.
Quote:
|
Re: [TF2] Trying to make the client to be forced to use weapon slot number 2.
hook one of the weapon switch functions with sdkhooks and change the weapon back, sdk call resetweapon will help.
|
Re: [TF2] Trying to make the client to be forced to use weapon slot number 2.
Quote:
thank you. |
| All times are GMT -4. The time now is 21:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.