This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
Xash3DArchive/pr_server/trigger_changelevel.c

28 lines
511 B
C

/*
====================
|TRIGGER_CHANGLEVEL|
========================
|Changes level on touch|
========================
*/
void() trigger_changelevel_touch =
{
changelevel(pev->map, pev->landmark);
};
void() trigger_changelevel =
{
entity lmark;
if(!pev->map) Error("chagnelevel trigger doesn't have map\n");
trigger_setup();
lmark = find(world, classname, "info_landmark");
if( lmark ) pev->landmark = lmark->targetname;
pev->touch = trigger_changelevel_touch;
};