ShieldSwipe Patch Appears to be broken in current state

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

ShieldSwipe Patch Appears to be broken in current state

Postby Crazys » Thu Jun 02, 2011 12:41 am

Update to coding for Shield Swipe handling in gameplayer
Line 6478 in Game Player Changed Group for Shieldswipe to the following
previous version did not hit players. Did not appear to hit anything. Had limitations. Only limits should be in range and can attack for shieldswipe.
Code: Select all
else // shield swipe
{
foreach (GameNPC npc in GetNPCsInRadius(false, (ushort)AttackRange))
{
if (GameServer.ServerRules.IsAllowedToAttack(this, npc, true))
{
listAvailableTargets.Add(npc);
}
}
foreach (GamePlayer pl in GetPlayersInRadius(false, (ushort)AttackRange))
{
if (pl == null) continue;
if (GameServer.ServerRules.IsAllowedToAttack(this, pl, true))
{
listAvailableTargets.Add(pl);
}
}
if (listAvailableTargets.Contains(target) == true)
{
listAvailableTargets.Remove(target);
}
foreach (GameLiving obj in listAvailableTargets)
{
this.MakeAttack(obj, attackWeapon, null, 1, ServerProperties.Properties.SPELL_INTERRUPT_DURATION, false, false);
}
}
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: ShieldSwipe Patch Appears to be broken in current state

Postby rdsandersjr » Thu Jun 02, 2011 6:05 am

Probably the changes grav made with isallowedtoattack earlier?
Thanks,
RDSandersJR
User avatar
rdsandersjr
Support Team
 
Posts: 1089
Joined: Fri Aug 01, 2008 3:01 pm
Location: Cincinnati, Ohio

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Graveen » Thu Jun 02, 2011 8:27 am

'll check, my change implies pet & gameplayer. TBH my changes'll be modified - it broke necros - and leave IsAllowedToAttack() as it was.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Crazys » Thu Jun 02, 2011 11:17 am

I still feel the old code had to much triple checking and unneeded random function. Also did not include players. So either way an update is still needed wether it be this 1 or a different 1
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Tolakram » Thu Jun 02, 2011 11:35 am

No, this is an old bug.

Why don't we add ExtraTargets and IsExtraRandom columns to the style table so we don't have to use hard coded stuff in gameplayer? This would also allow for more customization options.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Graveen » Thu Jun 02, 2011 4:46 pm

To qualify a multi hit style, what do we need ?

- range
- max target
- type of effect (cone, pbaoe)

You see more to use ?
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Crazys » Thu Jun 02, 2011 4:58 pm

To qualify a multi hit style, what do we need ?

- range
- max target
- type of effect (cone, pbaoe)

You see more to use ?
Per Live... This is all that is needed.
Although per previous testing i believe shield swipe was an AoE off your target not off yourself (i could be wrong). This may also need to be changed in current coding context...
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Dinberg » Sat Jun 04, 2011 8:43 am

Yeah I think it was AoE when I played. Perhaps this was changed in the shield overhaul?
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Graveen » Sun Jun 05, 2011 9:03 am

honestly i doubt we can see if it is AOE based on target or AOE based on tank performing ss. Let's consider it is logically an aoe based on the tank.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Crazys » Mon Jun 06, 2011 6:32 pm

If i'm not mistaken it was off the target. If my target was ontop of me the farthest effected target was closer... farther out... could be farther away... If your assuming the its a pbae the range would have to be increased... since most NPCs would not fall within the range of your swipe where ae off the target tehy do
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: ShieldSwipe Patch Appears to be broken in current state

Postby Dinberg » Tue Jun 07, 2011 11:56 am

Pretty sure the AoE was target based, I remember thinking it was a little odd at the time.
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest