Skill triggers on start map.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1816 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
2213d5050c
commit
d6056ff880
1 changed files with 10 additions and 1 deletions
|
@ -488,13 +488,22 @@ trigger_setskill
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
void() trigger_skill_touch =
|
||||
{
|
||||
if (other.classname != "player")
|
||||
return;
|
||||
|
||||
cvar_set ("skill", self.message);
|
||||
};
|
||||
|
||||
/*QUAKED trigger_setskill (.5 .5 .5) ?
|
||||
sets skill level to the value of "message".
|
||||
Only used on start map.
|
||||
*/
|
||||
void() trigger_setskill =
|
||||
{
|
||||
remove (self);
|
||||
InitTrigger ();
|
||||
self.touch = trigger_skill_touch;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue