Monthly Target: $400 Donations: $25
 6% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
locktar
New Member
Join Date: Nov 2010
Old 11-14-2010 , 16:57   [TF2] How to Hide the weapon model? (r_drawviewmodel) ?
Reply With Quote #1

Hi,

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

Last edited by locktar; 11-15-2010 at 21:31. Reason: Wrong Question
locktar is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 11-15-2010 , 18:36   Re: [TF2] Disabling model weapon (r_drawviewmodel) ?
Reply With Quote #2

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.
CrimsonGT is offline
locktar
New Member
Join Date: Nov 2010
Old 11-15-2010 , 20:38   Re: [TF2] Disabling model weapon (r_drawviewmodel) ?
Reply With Quote #3

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
Attached Files
File Type: sp Get Plugin or Get Source (wpnblock-new.sp - 110 views - 2.5 KB)

Last edited by locktar; 11-15-2010 at 21:39.
locktar is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin®
Copyright ©2000 - 2015, vBulletin Solutions, Inc.
Theme made by Freecode