MCPcopy Create free account
hub / github.com/JACoders/OpenJK / G_SpawnString

Function G_SpawnString

code/game/g_spawn.cpp:80–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80qboolean G_SpawnString( const char *key, const char *defaultString, char **out ) {
81 int i;
82
83 if ( !spawning ) {
84 *out = (char *)defaultString;
85// G_Error( "G_SpawnString() called while not spawning" );
86 }
87
88 for ( i = 0 ; i < numSpawnVars ; i++ ) {
89 if ( !Q_stricmp( key, spawnVars[i][0] ) ) {
90 *out = spawnVars[i][1];
91 return qtrue;
92 }
93 }
94
95 *out = (char *)defaultString;
96 return qfalse;
97}
98
99qboolean G_SpawnFloat( const char *key, const char *defaultString, float *out ) {
100 char *s;

Callers 15

SP_fx_explosion_trailFunction · 0.70
SP_fx_target_beamFunction · 0.70
SP_trigger_multipleFunction · 0.70
SP_trigger_onceFunction · 0.70
SP_trigger_hurtFunction · 0.70
SP_func_breakableFunction · 0.70
SP_misc_model_breakableFunction · 0.70
SP_target_speakerFunction · 0.70
SP_target_level_changeFunction · 0.70
SP_target_play_musicFunction · 0.70
SP_func_trainFunction · 0.70
G_SpawnFloatFunction · 0.70

Calls 1

Q_stricmpFunction · 0.85

Tested by

no test coverage detected