Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
game: omnibot fix - added 'exploded' to gScriptEvents refs #86
Browse files Browse the repository at this point in the history
  • Loading branch information
IR4T4 authored and JanSimek committed Feb 25, 2013
1 parent ad9db31 commit 533519e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/game/g_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ according to each different scenario.

vmCvar_t g_scriptDebug;

//
//====================================================================
//

// action functions need to be declared here so they can be accessed in the scriptAction table
qboolean G_ScriptAction_GotoMarker(gentity_t *ent, char *params);
qboolean G_ScriptAction_Wait(gentity_t *ent, char *params);
Expand Down Expand Up @@ -167,7 +166,7 @@ g_script_stack_action_t gScriptActions[] =
{ "attachtotag", G_ScriptAction_TagConnect },
{ "halt", G_ScriptAction_Halt },
{ "stopsound", G_ScriptAction_StopSound },
// {"startcam", G_ScriptAction_StartCam},
//{"startcam", G_ScriptAction_StartCam},
{ "entityscriptname", G_ScriptAction_EntityScriptName },
{ "aiscriptname", G_ScriptAction_AIScriptName },
{ "wm_axis_respawntime", G_ScriptAction_AxisRespawntime },
Expand Down Expand Up @@ -229,7 +228,6 @@ g_script_stack_action_t gScriptActions[] =
// fade all sounds up or down
{ "fadeallsounds", G_ScriptAction_FadeAllSounds },


{ "construct", G_ScriptAction_Construct },
{ "spawnrubble", G_ScriptAction_SpawnRubble },
{ "setglobalfog", G_ScriptAction_SetGlobalFog },
Expand Down Expand Up @@ -277,6 +275,7 @@ g_script_event_define_t gScriptEvents[] =
{ "defused", NULL },
{ "mg42", G_Script_EventMatch_StringEqual },
{ "message", G_Script_EventMatch_StringEqual }, // contains a sequence of VO in a message
{ "exploded", NULL }, // added for omni-bot 0.7

{ NULL, NULL }
};
Expand Down Expand Up @@ -855,8 +854,8 @@ void G_Script_ScriptEvent(gentity_t *ent, char *eventStr, char *params)
va("Defused at %s.", ent->parent ? ent->parent->track : ent->track),
eventStr);

// pheno: log script defused actions (ETPro behavior)
G_LogPrintf("etpub popup: %s defused \"%s\"\n",
// log script defused actions (ETPro behavior)
G_LogPrintf("legacy popup: %s defused \"%s\"\n",
params,
ent->parent ? ent->parent->track : ent->track);
}
Expand All @@ -866,8 +865,8 @@ void G_Script_ScriptEvent(gentity_t *ent, char *eventStr, char *params)
va("Planted at %s.", ent->parent ? ent->parent->track : ent->track),
eventStr);

// pheno: log script dynamited actions (ETPro behavior)
G_LogPrintf("etpub popup: %s planted \"%s\"\n",
// log script dynamited actions (ETPro behavior)
G_LogPrintf("legacy popup: %s planted \"%s\"\n",
params,
ent->parent ? ent->parent->track : ent->track);
}
Expand Down Expand Up @@ -1161,7 +1160,6 @@ Scripted brush entity. A simplified means of moving brushes around based on even
*/
void SP_script_mover(gentity_t *ent)
{

float scale[3] = { 1, 1, 1 };
vec3_t scalevec;
char tagname[MAX_QPATH];
Expand All @@ -1184,7 +1182,7 @@ void SP_script_mover(gentity_t *ent)
// first position at start
VectorCopy(ent->s.origin, ent->pos1);

// VectorCopy( ent->r.currentOrigin, ent->pos1 );
//VectorCopy( ent->r.currentOrigin, ent->pos1 );
VectorCopy(ent->pos1, ent->pos2); // don't go anywhere just yet

trap_SetBrushModel(ent, ent->model);
Expand Down

0 comments on commit 533519e

Please sign in to comment.