Forum

Have impulse automatically executed on map load

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Have impulse automatically executed on map load

Postby daemonicky » Thu May 05, 2011 10:14 pm

I want to hit somme impulse when game is loaded. I managed to update quake.rc and added +mlook which works, but not if I add impulse. But now I would like to add one impulse because it is attached to starting of some command.
Is it posssible and how to autoamtically run impulses on level start?
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm

Postby mankrip » Fri May 06, 2011 12:25 am

You don't need to run impulses when starting a level. Just write whatever code you want directly at the end of the putclientinserver function.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Postby ceriux » Fri May 06, 2011 2:54 am

yeah just write your function, and call that function at the end of putclientinserver or if you only want it to fire once at the begging put it in clientconnect
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby daemonicky » Fri May 06, 2011 3:01 am

Thank you both :) .

EDIT: I had to use PlayerPreThink in the end. Maybe because there was an entity involved; I wanted to ake chasecam according one tutorial there.
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest