Xonotic
|
Go to the source code of this file.
Macros | |
#define | SANDBOX_GETARG arg = argv(++argv_num); |
Functions | |
MUTATOR_HOOKFUNCTION (sandbox, SV_ParseClientCommand) | |
MUTATOR_HOOKFUNCTION (sandbox, SV_StartFrame) | |
void | sandbox_Database_Load () |
void | sandbox_Database_Save () |
void | sandbox_ObjectAttach_Remove (entity e) |
void | sandbox_ObjectAttach_Set (entity e, entity parent, string s) |
entity | sandbox_ObjectEdit_Get (entity this, float permissions) |
void | sandbox_ObjectEdit_Scale (entity e, float f) |
void | sandbox_ObjectFunction_Think (entity this) |
void | sandbox_ObjectFunction_Touch (entity this, entity toucher) |
entity | sandbox_ObjectPort_Load (entity this, string s, float database) |
string | sandbox_ObjectPort_Save (entity e, bool database) |
void | sandbox_ObjectRemove (entity e) |
entity | sandbox_ObjectSpawn (entity this, float database) |
#define SANDBOX_GETARG arg = argv(++argv_num); |
Referenced by sandbox_ObjectPort_Load().
MUTATOR_HOOKFUNCTION | ( | sandbox | , |
SV_ParseClientCommand | |||
) |
Definition at line 449 of file sv_sandbox.qc.
References argv(), autocvar_g_sandbox_editor_flood, autocvar_g_sandbox_editor_free, autocvar_g_sandbox_editor_maxobjects, autocvar_g_sandbox_info, autocvar_g_sandbox_readonly, cmd_argc, cmd_name, entity(), fexists(), ftos(), gettaginfo_name, IL_EACH, LOG_INFO, M_ARGV, MOVETYPE_NONE, MOVETYPE_PHYSICS, MOVETYPE_TOSS, MUTATOR_RETURNVALUE, NULL, object_count, precache_sound(), print_to(), sandbox_ObjectAttach_Remove(), sandbox_ObjectAttach_Set(), sandbox_ObjectEdit_Get(), sandbox_ObjectEdit_Scale(), sandbox_ObjectPort_Load(), sandbox_ObjectPort_Save(), sandbox_ObjectRemove(), sandbox_ObjectSpawn(), set_movetype(), SOLID_BBOX, SOLID_TRIGGER, stof(), stov(), strcat(), strcpy, strfree, string_null, strzone(), stuffcmd, time, and vtos().
MUTATOR_HOOKFUNCTION | ( | sandbox | , |
SV_StartFrame | |||
) |
Definition at line 818 of file sv_sandbox.qc.
References autocvar_g_sandbox_storage_autosave, autosave_time, sandbox_Database_Save(), and time.
void sandbox_Database_Load | ( | ) |
Definition at line 408 of file sv_sandbox.qc.
References autocvar_g_sandbox_info, autocvar_g_sandbox_storage_name, entity(), fclose(), fgets(), FILE_READ, fopen(), ftos(), GetMapname(), LOG_INFO, NULL, precache_sound(), sandbox_ObjectPort_Load(), strcat(), and substring().
void sandbox_Database_Save | ( | ) |
Definition at line 389 of file sv_sandbox.qc.
References autocvar_g_sandbox_storage_name, fclose(), FILE_WRITE, fopen(), fputs(), ftos(), GetMapname(), IL_EACH, object_count, and strcat().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 147 of file sv_sandbox.qc.
References IL_EACH.
Referenced by MUTATOR_HOOKFUNCTION(), sandbox_ObjectAttach_Set(), sandbox_ObjectEdit_Scale(), and sandbox_ObjectRemove().
Definition at line 130 of file sv_sandbox.qc.
References DAMAGE_NO, MOVETYPE_FOLLOW, parent, sandbox_ObjectAttach_Remove(), set_movetype(), and SOLID_NOT.
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_ObjectPort_Load().
Definition at line 98 of file sv_sandbox.qc.
References autocvar_g_sandbox_editor_distance_edit, autocvar_g_sandbox_editor_free, crosshair_trace_plusvisibletriggers(), NULL, origin, trace_ent, and vdist.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 118 of file sv_sandbox.qc.
References autocvar_g_sandbox_object_scale_max, autocvar_g_sandbox_object_scale_min, bound(), entity(), and sandbox_ObjectAttach_Remove().
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_ObjectPort_Load().
Definition at line 68 of file sv_sandbox.qc.
References autocvar_g_sandbox_editor_free, autocvar_g_sandbox_readonly, crypto_idfp, FOREACH_CLIENT, grab, IS_PLAYER, IS_REAL_CLIENT, nextthink, NULL, and time.
Referenced by sandbox_ObjectSpawn().
Definition at line 43 of file sv_sandbox.qc.
References _sound, ATTEN_NORM, autocvar_g_sandbox_object_material_velocity_factor, autocvar_g_sandbox_object_material_velocity_min, bound(), ceil(), CH_TRIGGER, ftos(), material, origin, random(), strcat(), time, touch_timer, velocity, vlen(), and VOL_BASE.
Referenced by sandbox_ObjectSpawn().
Definition at line 316 of file sv_sandbox.qc.
References argv(), entity(), NULL, parent, port_string, SANDBOX_GETARG, sandbox_ObjectAttach_Set(), sandbox_ObjectEdit_Scale(), sandbox_ObjectSpawn(), set_movetype(), setorigin(), stof(), stov(), strcpy, strfree, string_null, strzone(), tokenize_console, and tokenizebyseparator.
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_Database_Load().
Definition at line 232 of file sv_sandbox.qc.
References ftos(), IL_EACH, LAMBDA, strcat(), and string_null.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 212 of file sv_sandbox.qc.
References FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, NULL, sandbox_ObjectAttach_Remove(), and strfree.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 167 of file sv_sandbox.qc.
References autocvar_g_sandbox_editor_distance_spawn, crypto_idfp, DAMAGE_AIM, entity(), IL_PUSH(), makevectors, MOVE_NORMAL, MOVETYPE_TOSS, netname, origin, print_to(), sandbox_ObjectFunction_Think(), sandbox_ObjectFunction_Touch(), set_movetype(), setorigin(), setthink, SOLID_BBOX, string_null, strzone(), time, trace_endpos, v_angle, v_forward, view_ofs, and WarpZone_TraceLine().
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_ObjectPort_Load().
string autocvar_g_sandbox |
Definition at line 5 of file sv_sandbox.qc.
float autocvar_g_sandbox_editor_distance_edit |
Definition at line 15 of file sv_sandbox.qc.
Referenced by sandbox_ObjectEdit_Get().
float autocvar_g_sandbox_editor_distance_spawn |
Definition at line 14 of file sv_sandbox.qc.
Referenced by sandbox_ObjectSpawn().
float autocvar_g_sandbox_editor_flood |
Definition at line 11 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION().
int autocvar_g_sandbox_editor_free |
Definition at line 13 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION(), sandbox_ObjectEdit_Get(), and sandbox_ObjectFunction_Think().
int autocvar_g_sandbox_editor_maxobjects |
Definition at line 12 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION().
int autocvar_g_sandbox_info |
Definition at line 6 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_Database_Load().
float autocvar_g_sandbox_object_material_velocity_factor |
Definition at line 19 of file sv_sandbox.qc.
Referenced by sandbox_ObjectFunction_Touch().
float autocvar_g_sandbox_object_material_velocity_min |
Definition at line 18 of file sv_sandbox.qc.
Referenced by sandbox_ObjectFunction_Touch().
float autocvar_g_sandbox_object_scale_max |
Definition at line 17 of file sv_sandbox.qc.
Referenced by sandbox_ObjectEdit_Scale().
float autocvar_g_sandbox_object_scale_min |
Definition at line 16 of file sv_sandbox.qc.
Referenced by sandbox_ObjectEdit_Scale().
bool autocvar_g_sandbox_readonly |
Definition at line 7 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_ObjectFunction_Think().
bool autocvar_g_sandbox_storage_autoload |
Definition at line 10 of file sv_sandbox.qc.
float autocvar_g_sandbox_storage_autosave |
Definition at line 9 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION().
string autocvar_g_sandbox_storage_name |
Definition at line 8 of file sv_sandbox.qc.
Referenced by sandbox_Database_Load(), and sandbox_Database_Save().
float autosave_time |
Definition at line 22 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION().
IntrusiveList g_sandbox_objects |
Definition at line 21 of file sv_sandbox.qc.
string material |
Definition at line 40 of file sv_sandbox.qc.
Referenced by sandbox_ObjectFunction_Touch().
entity object_attach |
Definition at line 39 of file sv_sandbox.qc.
float object_count |
Definition at line 26 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_Database_Save().
float object_flood |
Definition at line 38 of file sv_sandbox.qc.
float old_movetype |
Definition at line 97 of file sv_sandbox.qc.
float old_solid |
Definition at line 97 of file sv_sandbox.qc.
string port_string[MAX_STORAGE_ATTACHMENTS] |
Definition at line 230 of file sv_sandbox.qc.
Referenced by sandbox_ObjectPort_Load().
float touch_timer |
Definition at line 42 of file sv_sandbox.qc.
Referenced by sandbox_ObjectFunction_Touch().