Doing this doesn't give
you a score if you use
Debug Keys. Like in
Totengraber 2.
Step 1:
Open WL_DEF.H and add
this somewhere:
extern int DebugOk;
Step 2:
Open WL_AGENT.C and do a
search for "Give
Points"(no quotes!) you
should see something
like this:
/*
=============
=
=Give Points
=
=============
*/
void GivePoints (long
points)
{
gamestate.score +=
points;
while (gamestate.score
>=
gamestate.nextextra)
{
gamestate.nextextra +=
EXTRAPOINTS;
GiveExtraMan ();
}
DrawScore ();
}
Step 3: Change it to:
(DON'T forget to add the
"}" (no quotes) after
"DrawScore ();"
!
=============
=
=Give Points
=
=============
*/
void GivePoints (long
points)
{
if (!DebugOk)
{
gamestate.score +=
points;
while (gamestate.score
>=
gamestate.nextextra)
{
gamestate.nextextra +=
EXTRAPOINTS;
GiveExtraMan ();
}
DrawScore ();
}
}
Compile and Link up!
Now when you use debug
keys you get no score
and the player can't get
a score!
Get
back to the Dome
tutorials
Jump
to the
top
|