|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
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 454 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(), FOR_EACH_TAG, ftos(), g_sandbox_objects, gettaginfo_name, IL_EACH, LOG_INFO, M_ARGV, MOVETYPE_NONE, MOVETYPE_PHYSICS, MOVETYPE_TOSS, MUTATOR_CALLHOOK, 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, SV_ParseClientCommand, time, and vtos().
| MUTATOR_HOOKFUNCTION | ( | sandbox | , |
| SV_StartFrame | ) |
Definition at line 824 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 412 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 390 of file sv_sandbox.qc.
References autocvar_g_sandbox_storage_name, fclose(), FILE_WRITE, fopen(), fputs(), ftos(), g_sandbox_objects, GetMapname(), IL_EACH, MUTATOR_CALLHOOK, object_count, and strcat().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 148 of file sv_sandbox.qc.
References entity(), g_sandbox_objects, and IL_EACH.
Referenced by MUTATOR_HOOKFUNCTION(), sandbox_ObjectAttach_Set(), and sandbox_ObjectRemove().
Definition at line 131 of file sv_sandbox.qc.
References DAMAGE_NO, entity(), 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(), entity(), 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 RoundPerfectVector().
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, CSQCMODEL_AUTOUPDATE, entity(), FOREACH_CLIENT, grab, IS_PLAYER, IS_REAL_CLIENT, MUTATOR_CALLHOOK, nextthink, NULL, realowner, 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, entity(), ftos(), material, origin, random(), Send_Effect_(), strcat(), time, touch_timer, toucher, velocity, vlen(), and VOL_BASE.
Referenced by sandbox_ObjectSpawn().
Definition at line 317 of file sv_sandbox.qc.
References argv(), entity(), NULL, parent, port_string, SANDBOX_GETARG, sandbox_ObjectAttach_Set(), sandbox_ObjectEdit_Scale(), sandbox_ObjectSpawn(), set_movetype(), stof(), stov(), strcpy, strfree, string_null, strzone(), tokenize_console, and tokenizebyseparator.
Referenced by MUTATOR_HOOKFUNCTION(), and sandbox_Database_Load().
Definition at line 233 of file sv_sandbox.qc.
References entity(), g_sandbox_objects, IL_EACH, and LAMBDA.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 213 of file sv_sandbox.qc.
References entity(), FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, NULL, object_count, sandbox_ObjectAttach_Remove(), and strfree.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 168 of file sv_sandbox.qc.
References autocvar_g_sandbox_editor_distance_spawn, crypto_idfp, CSQCMODEL_AUTOINIT, DAMAGE_AIM, entity(), g_sandbox_objects, IL_PUSH(), makevectors, MOVE_NORMAL, MOVETYPE_TOSS, netname, object_count, origin, print_to(), sandbox_ObjectFunction_Think(), sandbox_ObjectFunction_Touch(), set_movetype(), setthink, settouch, 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.
Referenced by MUTATOR_HOOKFUNCTION(), sandbox_Database_Save(), sandbox_ObjectAttach_Remove(), sandbox_ObjectPort_Save(), and sandbox_ObjectSpawn().
| 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 37 of file sv_sandbox.qc.
Referenced by MUTATOR_HOOKFUNCTION(), sandbox_Database_Save(), sandbox_ObjectRemove(), and sandbox_ObjectSpawn().
| 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 231 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().