[Change] Tweaked beam aggro chance somewhat.
This commit is contained in:
parent
0ae6b8cecd
commit
4340b8042c
@ -561,7 +561,7 @@ static void weapon_hitBeam(Weapon* w, Pilot* p, WeaponLayer layer,
|
|||||||
|
|
||||||
/* Inform the ai it has been attacked, useless if player. */
|
/* Inform the ai it has been attacked, useless if player. */
|
||||||
if(!pilot_isPlayer(p)) {
|
if(!pilot_isPlayer(p)) {
|
||||||
if((player_target == p->id) || (RNGF()*dt < 0.70)) { /* 70% chance per second. */
|
if((player_target == p->id) || (RNGF() < 0.30*dt)) { /* 30% chance per second. */
|
||||||
if((w->parent == PLAYER_ID) &&
|
if((w->parent == PLAYER_ID) &&
|
||||||
(!pilot_isFlag(p, PILOT_HOSTILE) || (RNGF() < 0.5))) { /* 50% chance. */
|
(!pilot_isFlag(p, PILOT_HOSTILE) || (RNGF() < 0.5))) { /* 50% chance. */
|
||||||
faction_modPlayer(p->faction, -1); /* Slowly lower faction. */
|
faction_modPlayer(p->faction, -1); /* Slowly lower faction. */
|
||||||
|
Loading…
Reference in New Issue
Block a user