mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-21 12:03:08 -04:00
Fixed many more location bugs.
This commit is contained in:
@@ -753,7 +753,7 @@ void startDelayedAttack(obj_id attacker, obj_id target, obj_id objWeapon, string
|
||||
}
|
||||
else if(eggPosition == 3) // LOCATION
|
||||
{
|
||||
where = actionData.targetLoc;
|
||||
where = (location)actionData.targetLoc.clone();
|
||||
}
|
||||
|
||||
|
||||
@@ -1184,7 +1184,7 @@ boolean doCombatPreCheck(combat_data actionData, attacker_data attackerData, wea
|
||||
}
|
||||
else
|
||||
{
|
||||
location where = actionData.targetLoc;
|
||||
location where = (location)actionData.targetLoc.clone();
|
||||
where.y += 0.5f; // gotta raise the loc, or canSee will fail as it will collide with the terrain at that location. woohoo.
|
||||
cansee = canSee(attackerData.id, where);
|
||||
//sendSystemMessageTestingOnly(obj_id.getObjId(10014554), "CanSee 1");
|
||||
@@ -1327,7 +1327,7 @@ obj_id[] getCombatDefenders(obj_id self, obj_id target, weapon_data weaponData,
|
||||
{
|
||||
if(weaponData.weaponType == WEAPON_TYPE_DIRECTIONAL)
|
||||
{
|
||||
location where = actionData.targetLoc;
|
||||
location where = (location)actionData.targetLoc.clone();
|
||||
|
||||
// Width is an angle to the sides of your target; IE: 20 degree width is a total of 40 degrees.
|
||||
defenders = pvpGetTargetsInCone(self, self, where, length, width);
|
||||
|
||||
Reference in New Issue
Block a user