2007-09-02 22:00:00 +02:00
|
|
|
/*
|
|
|
|
+--------+
|
|
|
|
|Impulses|
|
|
|
|
+--------+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
|
|
|
|
| Scratch Http://www.admdev.com/scratch |
|
|
|
|
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
|
|
|
|
| Handle and execute "Impulse" commands - as entered from console. |
|
|
|
|
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
|
|
|
|
*/
|
|
|
|
|
|
|
|
void() CheckImpulses =
|
|
|
|
{
|
2007-09-16 22:00:00 +02:00
|
|
|
if (pev->impulse == 15)
|
2007-09-02 22:00:00 +02:00
|
|
|
CCam ();
|
|
|
|
|
2007-09-16 22:00:00 +02:00
|
|
|
if(pev->impulse == 10)
|
2007-09-02 22:00:00 +02:00
|
|
|
{
|
|
|
|
local string a;
|
2007-09-16 22:00:00 +02:00
|
|
|
a = ftos(pev->items);
|
|
|
|
sprint(pev, a);
|
|
|
|
sprint(pev, "Items Printed\n");
|
2007-09-02 22:00:00 +02:00
|
|
|
}
|
2007-09-16 22:00:00 +02:00
|
|
|
if(pev->impulse == 11)
|
2007-09-02 22:00:00 +02:00
|
|
|
{
|
2007-09-16 22:00:00 +02:00
|
|
|
pev->items = pev->items + 8;
|
|
|
|
sprint(pev, "Items added to\{136}\n");
|
2007-09-02 22:00:00 +02:00
|
|
|
}
|
|
|
|
|
2007-09-16 22:00:00 +02:00
|
|
|
if(pev->impulse == 150)
|
2007-09-02 22:00:00 +02:00
|
|
|
{
|
2007-09-16 22:00:00 +02:00
|
|
|
IEM_effects(TE_TELEPORT, pev->origin);
|
2007-09-02 22:00:00 +02:00
|
|
|
}
|
|
|
|
|
2007-09-16 22:00:00 +02:00
|
|
|
pev->impulse = 0; // Clear impulse list.
|
2007-09-02 22:00:00 +02:00
|
|
|
};
|