Forum

Yet another dumb question-saves

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Yet another dumb question-saves

Postby EMR » Wed Dec 15, 2010 8:43 pm

So how does the engine know which quake C variables are supposed to be persistent between levels? For example, it saves my ammo, but not random custom variables. Is it the same mechanism that save files use, or a different one?
EMR
 
Posts: 13
Joined: Mon Oct 11, 2010 8:08 pm

Postby Spike » Wed Dec 15, 2010 8:57 pm

the engine doesn't save your ammo. it only saves the parm1-16 vars. note how the qc manipulates those globals.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby EMR » Wed Dec 15, 2010 9:33 pm

So it would be impossible to save the states of more than 16 things between saves/levels? Also, where does it manipulate those globals (which QC file)?
EMR
 
Posts: 13
Joined: Mon Oct 11, 2010 8:08 pm

Postby leileilol » Wed Dec 15, 2010 10:15 pm

Client.qc
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest