Forum

The right QuakeC method for r_drawviewmodel 0?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

The right QuakeC method for r_drawviewmodel 0?

Postby Baker » Sat Jan 09, 2010 11:06 am

The original Rocket Arena and some mods send "r_drawviewmodel 0" to the client to make the gun disappear if you are in the observer box to watch the players fight.

That's annoying and I don't think QuakeC should as a general rule ever touch cvars.

Is there a right way to do this in standard QuakeC?

If not, what is the right way to do this in DarkPlaces?
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby c0burn » Sat Jan 09, 2010 12:44 pm

.viewmodel = ""
c0burn
 
Posts: 208
Joined: Fri Nov 05, 2004 12:48 pm
Location: Liverpool, England

Postby Baker » Sat Jan 09, 2010 9:55 pm

Thank you kind sir :D
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby c0burn » Mon Jan 11, 2010 2:35 am

Sorry, that should have been .weaponmodel.
c0burn
 
Posts: 208
Joined: Fri Nov 05, 2004 12:48 pm
Location: Liverpool, England


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest