Aller au contenu

Photo

[Request] no friendly-fire in normal difficulty


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
wicked potato

wicked potato
  • Members
  • 4 messages
hello

I'm looking for a way to get rid of friendly fire, a way that does not involve playing in easy

I have no experience in modding/scripting but I thought I could try to do it myself, since I found a thread where someone apparently managed to spot where the FF is defined in the game files :

http://social.biowar...x/422147#427870

I spent hours trying to have the toolset work, but « veni, vidi, faili » ("I came, I saw, I failed") so I gave up :pinched:

I would really appreciate if someone could try to make a mod getting rid of friendly-fire (for the normal difficulty)

thanks a lot!

#2
wicked potato

wicked potato
  • Members
  • 4 messages
nobody can give it a go? even with the infos in that other thread I talked about?



In the file effect_damage_nh.nss


// ---------------------------------------------------------------------
// DIFFICULTY: No friendly fire in easy difficulty
// ---------------------------------------------------------------------
if (GetGameDifficulty() == GAME_DIFFICULTY_CASUAL)
{
int bUnresistable = (nDamageFlags & DAMAGE_EFFECT_FLAG_UNRESISTABLE) == DAMAGE_EFFECT_FLAG_UNRESISTABLE;
int bDot = (nDamageFlags & DAMAGE_EFFECT_FLAG_FROM_DOT) == DAMAGE_EFFECT_FLAG_FROM_DOT;

// Unresistable damage still gets through, unless it's from a dot
if (!bUnresistable || bDot)
{
if (IsFriendlyFireParty(oTarget,oDamager))
{
#ifdef DEBUG
Log_Trace(LOG_CHANNEL_COMBAT_DAMAGE,"effect_damage_h.IsDamageAllowed",
"Easy Difficulty, Not allowing damage between members of the player's party");
#endif

return FALSE;
}
}

}
// ---------------------------------------------------------------------
// DIFFICULTY END
// ---------------------------------------------------------------------

and later in the same file

// -------------------------------------------------------------------------
// DIFFICULTY: 50% friendly fire in normal difficulty
// -------------------------------------------------------------------------
if ((GetGameDifficulty() == GAME_DIFFICULTY_NORMAL) && nDamageType != DAMAGE_TYPE_PLOT)
{
if (GetObjectType(oDamager) == OBJECT_TYPE_CREATURE)
{
// Unresistable damage still gets through
int bUnresistable = (nDamageFlags & DAMAGE_EFFECT_FLAG_UNRESISTABLE) == DAMAGE_EFFECT_FLAG_UNRESISTABLE;
int bDot = (nDamageFlags & DAMAGE_EFFECT_FLAG_FROM_DOT) == DAMAGE_EFFECT_FLAG_FROM_DOT;

if (!bUnresistable || bDot)
{
if (IsFriendlyFireParty(oTarget,oDamager))
{

DEBUG_PrintToScreen("BBB2",5);

#ifdef DEBUG

Log_Trace(LOG_CHANNEL_COMBAT_DAMAGE,"effect_damage_h.Effects_ApplyInstantEffectDamage",
"Medium Difficulty, scaling FF back to 50%");
#endif

fDamage *= 0.5;
}
}

}
}
// -------------------------------------------------------------------------
// DIFFICULTY END
// -------------------------------------------------------------------------

#3
Kunikos

Kunikos
  • Members
  • 97 messages
I would be interested in this as well.

#4
wicked potato

wicked potato
  • Members
  • 4 messages
man I bet it would be really easy to do it WELL IT IS NOT

Modifié par wicked potato, 08 janvier 2010 - 12:31 .


#5
Eshme

Eshme
  • Members
  • 756 messages
Lol i have the same problem. I see something just as easy. But i cannot make it work, however much i change it.

There is no tutorial for a simple edit like that.



Good luck thou

#6
wicked potato

wicked potato
  • Members
  • 4 messages
you were right

at last the toolset worked on my computer, so I tried to modify the effect_damage_h.nss file, but nothing would work

I give up!

#7
Midnight Breeze

Midnight Breeze
  • Members
  • 1 messages
No Friendly Fire Mod:

http://social.biowar...m/project/1367/

Modifié par Midnight Breeze, 27 février 2011 - 05:06 .


#8
0x30A88

0x30A88
  • Members
  • 1 081 messages
Midnight Breeze, I'm sure he has found out -- or left this place in the duration of the year between your post and his.

#9
STGM

STGM
  • Members
  • 7 messages

Perhaps, Gisle Aune, but I just came looking now, "about 1 year" after you and 3 after wicked potato, and I had not found the link Midnight Breeze posted... So she was instrumental in helping me... And probably others too.



LMFAO .... actually, Midnight Breeze's link is a 404 now. Ha.But I found this (it's called "Spell Shaping", excellent implementation by the way): http://dragonage.nex...ds.com/mods/483

Modifié par STGM, 10 août 2012 - 03:00 .


#10
STGM

STGM
  • Members
  • 7 messages
LMFAO .... actually, Midnight Breeze's link is a 404 now. Ha.
But I found this (it's called "Spell Shaping", excellent implementation by the way): http://dragonage.nex...ds.com/mods/483