mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Enemy Taunts Update (by anv)
- replaced 5 different riposte tags with one <riposte_quote>XXX<riposte_quote>, where XXX can be any quote number, that taunt is supposed to be answer to. All but quotes 20-22 use random enemy witnessing quote to taunt, these three - last attacker. - added above ripostes + some more. - see: http://www.bears-pit.com/board/ubbthreads.php/topics/327830/4/Externalised_taunts.html git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6637 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+3
-29
@@ -133,11 +133,7 @@ tauntStartElementHandle(void *userData, const XML_Char *name, const XML_Char **a
|
||||
strcmp(name, "miss_hth") == 0 ||
|
||||
strcmp(name, "miss_throwing_knife") == 0 ||
|
||||
|
||||
strcmp(name, "riposte_bullet_flew_by") == 0 ||
|
||||
strcmp(name, "riposte_under_heavy_fire") == 0 ||
|
||||
strcmp(name, "riposte_enemy_detected") == 0 ||
|
||||
strcmp(name, "riposte_1st_enemy_detected") == 0 ||
|
||||
strcmp(name, "riposte_multiple_enemies") == 0 ||
|
||||
strcmp(name, "riposte_quote") == 0 ||
|
||||
|
||||
strcmp(name, "enemy") == 0 ||
|
||||
strcmp(name, "admin") == 0 ||
|
||||
@@ -652,32 +648,10 @@ tauntEndElementHandle(void *userData, const XML_Char *name)
|
||||
pData->curTaunt.uiFlags |= (UINT16) atol(pData->szCharData) ? TAUNT_S_MISS_THROWING_KNIFE: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(strcmp(name, "riposte_bullet_flew_by") == 0)
|
||||
if(strcmp(name, "riposte_quote") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curTaunt.uiFlags |= (UINT16) atol(pData->szCharData) ? TAUNT_S_R_BULLET_FLEW_BY: 0;
|
||||
}
|
||||
else if(strcmp(name, "riposte_under_heavy_fire") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curTaunt.uiFlags |= (UINT16) atol(pData->szCharData) ? TAUNT_S_R_UNDER_HEAVY_FIRE: 0;
|
||||
}
|
||||
else if(strcmp(name, "riposte_enemy_detected") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curTaunt.uiFlags |= (UINT16) atol(pData->szCharData) ? TAUNT_S_R_ENEMY_DETECTED: 0;
|
||||
}
|
||||
else if(strcmp(name, "riposte_1st_enemy_detected") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curTaunt.uiFlags2 |= (UINT16) atol(pData->szCharData) ? TAUNT_S_R_1ST_ENEMY_DETECTED: 0;
|
||||
}
|
||||
else if(strcmp(name, "riposte_multiple_enemies") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curTaunt.uiFlags2 |= (UINT16) atol(pData->szCharData) ? TAUNT_S_R_MULTIPLE_ENEMIES: 0;
|
||||
pData->curTaunt.value[TAUNT_RIPOSTE_QUOTE] = (INT16) atol(pData->szCharData);
|
||||
}
|
||||
|
||||
if(strcmp(name, "enemy") == 0)
|
||||
|
||||
Reference in New Issue
Block a user