Saturday, January 5, 2013

GreyBear's Quake 2 Tutorials Chapter 1: Sabotage!

This is a good tutorial that works. I found one issue. When you get to the point where you need to write this code :
//
//
T_Damage(ent, ent, ent->owner, ent->velocity, ent->s.origin, ent->s.origin, 25, 0, 0);
//
//
you will discover that you do not have enough arguments for the T_Damage function. I resolved this issue by just adding an extra parameter at the end :
//
//
T_Damage(ent, ent, ent->owner, ent->velocity, ent->s.origin, ent->s.origin, 25, 0, 0, 1)
//
//
. This tutorial features using command line options to modify how quake2.exe executes. I am using Visual Studio 2008, in order to debug while still using these command line options you can add command line options as an automatic part of the visual studio 2000 by left clicking of the quake2 project properties>>Configuration Properties>>Debugging and entering them in the Command Arguments field. I entered : +set deathmatch 1 +map base1. While debugging quake after it compiles quake opens in a deathmatch using map base 1.

GreyBear's Quake 2 Tutorials Chapter 1: Sabotage!

No comments:

Post a Comment