|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "keys.qh"Go to the source code of this file.
Functions | |
| void | item_key_touch (entity this, entity toucher) |
| Key touch handler. | |
| string | item_keys_keylist (float keylist) |
| Returns a string with a comma separated list of key names, as specified in keylist. | |
| bool | item_keys_usekey (entity l, entity p) |
| Use keys from p on l. | |
| void | spawn_item_key (entity this) |
| Spawn a key with given model, key code and color. | |
| spawnfunc (item_key) | |
| spawnfunc (item_key1) | |
| spawnfunc (item_key2) | |
| spawnfunc (item_key_gold) | |
| spawnfunc (item_key_master) | |
| spawnfunc (item_key_silver) | |
Key touch handler.
Definition at line 77 of file keys.qc.
References centerprint(), entity(), IS_PLAYER, itemkeys, message, noise, play2(), PS, SUB_UseTargets(), and toucher.
Referenced by spawn_item_key().
Returns a string with a comma separated list of key names, as specified in keylist.
Definition at line 40 of file keys.qc.
References item_keys_names, lowestbit(), and strcat().
Referenced by door_check_keys(), and trigger_keylock_touch().
Use keys from p on l.
Returns true if any new keys were given, false otherwise.
Definition at line 4 of file keys.qc.
References entity().
Referenced by trigger_keylock_touch().
Spawn a key with given model, key code and color.
Definition at line 100 of file keys.qc.
References DropToFloor_QC_DelayedInit(), EF_LOWPRECISION, effects, entity(), item_key_touch(), mdl, MF_ROTATE, model, modelflags, MOVETYPE_NONE, MOVETYPE_TOSS, noalign, noise, origin, precache_sound(), Q3COMPAT_COMMON, set_movetype(), settouch, solid, SOLID_TRIGGER, and spawnflags.
Referenced by spawnfunc().
| spawnfunc | ( | item_key | ) |
Definition at line 166 of file keys.qc.
References BIT, colormod, item_keys_names, itemkeys, lowestbit(), message, model, netname, noise, objerror, SND, spawn_item_key(), strcat(), strzone(), and vector.
| spawnfunc | ( | item_key1 | ) |
| spawnfunc | ( | item_key2 | ) |
| spawnfunc | ( | item_key_gold | ) |
| spawnfunc | ( | item_key_master | ) |