mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Updated Enemy taunts feature (by anv)
- ridiculous amount of tags: attack, hit, miss, kill, head pop, blinded, type of attack, is target a zombie...
- ripostes to merc quotes,
- taunts can now make noise,
- bumped up amount of taunts to respectable 733, mostly thanks to your contributions guys,
- accidently squashed bug with incorrect noise notifications ("hears scream" instead of "hears explosion" etc.)
Ripostes
At the moment enemies can react to quotes "enemy detected", "1st enemy detected", "multiple enemies detected", "bullet flew by", "under heavy fire", as these are most likely to be used in combat. In the first three cases, riposting enemy will be chosen randomly from all enemy witnesses, latter two - last enemy to attack this merc will taunt.
Enemy's riposte will come as soon as merc quote is finished.
Noisy taunts
Taunts can be handled like other noises in game - shots, explosions, etc., meaning:
- they will be displayed only if someone from our team is close enough to hear them,
- they can be heard even if you don't see enemy (with twist of his name changed to "unknown voice". Yay.)
- volume of taunts is configurable in .ini.
see: http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/327830/4.html
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6628 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1329,12 +1329,22 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
BOOLEAN fTauntShowPopupBox;
|
||||
BOOLEAN fTauntShowInLog;
|
||||
BOOLEAN fTauntMakeNoise;
|
||||
BOOLEAN fTauntOnlyVisibleEnemies;
|
||||
BOOLEAN fTauntShowPopupBoxIfHeard;
|
||||
BOOLEAN fTauntShowInLogIfHeard;
|
||||
BOOLEAN fTauntAlwaysShowPopupBox;
|
||||
BOOLEAN fTauntAlwaysShowInLog;
|
||||
UINT16 sVolume;
|
||||
INT16 sModDelay;
|
||||
UINT16 sMinDelay;
|
||||
UINT16 sMaxDelay;
|
||||
UINT8 ubTauntFireGunChance;
|
||||
UINT8 ubTauntFireLauncherChance;
|
||||
UINT8 ubTauntAttackBladeChance;
|
||||
UINT8 ubTauntAttackHTHChance;
|
||||
UINT8 ubTauntThrowKnifeChance;
|
||||
UINT8 ubTauntThrowGrenadeChance;
|
||||
UINT8 ubTauntChargeKnifeChance;
|
||||
@@ -1343,9 +1353,21 @@ typedef struct
|
||||
UINT8 ubTauntRunAwayChance;
|
||||
UINT8 ubTauntSeekNoiseChance;
|
||||
UINT8 ubTauntAlertChance;
|
||||
UINT8 ubTauntSuspiciousChance;
|
||||
UINT8 ubTauntGotHitChance;
|
||||
UINT8 ubTauntGotDeafenedBlindedChance;
|
||||
UINT8 ubTauntGotRobbedChance;
|
||||
UINT8 ubTauntGotMissedChance;
|
||||
UINT8 ubTauntKillChance;
|
||||
UINT8 ubTauntHeadPopChance;
|
||||
UINT8 ubTauntHitChance;
|
||||
UINT8 ubTauntMissChance;
|
||||
UINT8 ubTauntOutOfAmmoChance;
|
||||
UINT8 ubTauntReloadChance;
|
||||
UINT8 ubTauntNoticedUnseenChance;
|
||||
UINT8 ubTauntSayHiChance;
|
||||
UINT8 ubTauntInformAboutChance;
|
||||
UINT8 ubRiposteChance;
|
||||
|
||||
} TAUNTS_SETTINGS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user