Yet another dumb question-saves

Discuss programming in the QuakeC language.
Post Reply
EMR
Posts: 13
Joined: Mon Oct 11, 2010 8:08 pm

Yet another dumb question-saves

Post by EMR »

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?
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

the engine doesn't save your ammo. it only saves the parm1-16 vars. note how the qc manipulates those globals.
EMR
Posts: 13
Joined: Mon Oct 11, 2010 8:08 pm

Post by EMR »

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)?
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Post by leileilol »

Client.qc
i should not be here
Post Reply