AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   [TF2] How to Hide the weapon model? (r_drawviewmodel) ? (https://forums.alliedmods.net/showthread.php?t=143122)

locktar 11-14-2010 16:57

[TF2] How to Hide the weapon model? (r_drawviewmodel) ?
 
Hi,

Im use the wpnblock to disable the weapons, how can i hide the weapon model? example: r_drawviewmodel 0 ... but for all players

CrimsonGT 11-15-2010 18:36

Re: [TF2] Disabling model weapon (r_drawviewmodel) ?
 
You can use SetEntityRenderMode(entity, RenderMode:mode) on the view model, and set it to RenderMode:none. The view model is a "tf_viewmodel". You can search through these entities and check the owner against the client, or I believe CTFPlayer also has a netprop to get the view model index.

locktar 11-15-2010 20:38

Re: [TF2] Disabling model weapon (r_drawviewmodel) ?
 
1 Attachment(s)
hi!

im a newbie in scripting ... im my surf server all weapons are blocked ... just melee weapons are on ... but im want to hide the model weapon too ... im edit the wpnblock.sp to not show the notice ... where can i add this command to hide the model weapon?

can u help me? my sp is here.

ty man
lock


All times are GMT -4. The time now is 09:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.