[beta release] Return to Nameless City
Moderator: InsideQC Admins
18 posts
• Page 2 of 2 • 1, 2
items.qc
and somewere
client.qc
Dr. Shadowborg +1 =)
- Code: Select all
void() key_touch =
{
if (other.classname != "player")
return;
if (other.health <= 0)
return;
if (other.items & self.items)
return;
sound (other, CHAN_ITEM, self.noise, 1, ATTN_NORM);
stuffcmd (other, "bf\n");
other.items = other.items | self.items;
// Scrama: auto save games on old maps
// rtnc maps should use trigger_autosave
if (!world.frags)
SUB_AutoSave();
sprint (other, "You got the ");
sprint (other, self.netname);
sprint (other,"\n");
activator = other;
SUB_UseTargets(); // fire all targets / killtargets
if (!coop)
remove(self);
};
and somewere
- Code: Select all
void () SUB_AutoSave =
{
if (coop||deathmatch)
return;
localcmd("save auto\n");
game_autosaved = 1;
}
client.qc
- Code: Select all
void() respawn =
{
if ((intermission_running)&&((coop)||(deathmatch))) // not allowed during intermission
return;
if (coop)
{
// make a copy of the dead body for appearances sake
CopyToBodyQue (self);
// save weapons and ammo
// get the spawn parms as they were at level start
setspawnparms (self);
// respawn
PutClientInServer ();
}
else if (deathmatch)
{
// make a copy of the dead body for appearances sake
CopyToBodyQue (self);
// set default spawn parms
SetNewParms ();
// respawn
PutClientInServer ();
}
else
{ // restart the entire server
if (game_autosaved)
localcmd ("load auto\n");
else
localcmd ("restart\n");
}
};
Dr. Shadowborg +1 =)
-

Scrama - Posts: 20
- Joined: Fri Aug 28, 2009 6:16 am
- Location: Siberia, Omsk
18 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest
