Gyro is provided as four .qc files and must be installed into an existing mod or source base. Once you are ready to proceed, you should follow the steps below:
Step 1
Copy the four .qc files (gyro_forces.qc
, gyro_main.qc
, gyro_physics.qc
and gyro_user.qc
) into the source folder of your mod.
Step 2
You now need to add these files to your progs.src
file, just under defs.qc
, as shown below:
defs.qc gyro_main.qc gyro_physics.qc gyro_forces.qc gyro_user.qc subs.qc fight.qc ...
Step 3
Load defs.qc
and find, near the bottom, the remove()
function. You will need to alter this into a forward declaration by removing the "= #15
" part, leaving the line as:
void(entity e) remove;
Step 4
In order for Gyro to run, we must add a single line to world.qc
, in the StartFrame()
function. It can be found near the bottom of the file and needs to look something like this:
... skill = cvar("skill"); framecount = framecount + 1; Gyro_Run(); };
Step 5
Installation complete! When you are satisfied that Gyro is installed correctly, you may proceed onto the configuration stage.