Skip to content

Commit

Permalink
Merge pull request #1 from EQEmu/master
Browse files Browse the repository at this point in the history
sync fork up with source
  • Loading branch information
gpanula committed May 2, 2015
2 parents d7e3a33 + 1f56c74 commit 79928c1
Show file tree
Hide file tree
Showing 28 changed files with 385 additions and 224 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50)
-------------------------------------------------------
== 04/30/2015 ==
demonstar55: Implement mob and client melee push
You can set Combat:MeleePush to false to turn off or change Combat:MeleePushChance to increase the chance an NPC can be pushed
PCs are always pushed, need to do more testing to verify.

== 04/22/2015 ==
Uleat: Probable fix for 'Debug Assertion Failure' in Client::GarbleMessage() when calling the 'isalpha' macro.
ref: https://connect.microsoft.com/VisualStudio/feedback/details/932876/calling-isdigit-with-a-signed-char-1-results-in-a-assert-failure-in-debug-compiles
Expand Down
8 changes: 4 additions & 4 deletions common/eq_packet_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ struct TargetReject_Struct {

struct PetCommand_Struct {
/*000*/ uint32 command;
/*004*/ uint32 unknown;
/*004*/ uint32 target;
};

/*
Expand Down Expand Up @@ -1318,9 +1318,9 @@ struct CombatDamage_Struct
/* 04 */ uint8 type; //slashing, etc. 231 (0xE7) for spells
/* 05 */ uint16 spellid;
/* 07 */ uint32 damage;
/* 11 */ uint32 unknown11;
/* 15 */ uint32 sequence; // see above notes in Action_Struct
/* 19 */ uint32 unknown19;
/* 11 */ float force;
/* 15 */ float meleepush_xy; // see above notes in Action_Struct
/* 19 */ float meleepush_z;
/* 23 */
};

Expand Down
8 changes: 5 additions & 3 deletions common/patches/rof.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,9 @@ namespace RoF
OUT(type);
OUT(spellid);
OUT(damage);
eq->sequence = emu->sequence;
OUT(force)
OUT(meleepush_xy);
OUT(meleepush_z)

FINISH_ENCODE();
}
Expand Down Expand Up @@ -4389,7 +4391,7 @@ namespace RoF
IN(type);
IN(spellid);
IN(damage);
emu->sequence = eq->sequence;
IN(meleepush_xy);

FINISH_DIRECT_DECODE();
}
Expand Down Expand Up @@ -4717,7 +4719,7 @@ namespace RoF
SETUP_DIRECT_DECODE(PetCommand_Struct, structs::PetCommand_Struct);

IN(command);
emu->unknown = eq->unknown04;
IN(target);

FINISH_DIRECT_DECODE();
}
Expand Down
8 changes: 5 additions & 3 deletions common/patches/rof2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,9 @@ namespace RoF2
OUT(type);
OUT(spellid);
OUT(damage);
eq->sequence = emu->sequence;
OUT(force)
OUT(meleepush_xy);
OUT(meleepush_z)

FINISH_ENCODE();
}
Expand Down Expand Up @@ -4538,7 +4540,7 @@ namespace RoF2
IN(type);
IN(spellid);
IN(damage);
emu->sequence = eq->sequence;
IN(meleepush_xy);

FINISH_DIRECT_DECODE();
}
Expand Down Expand Up @@ -4864,7 +4866,7 @@ namespace RoF2
SETUP_DIRECT_DECODE(PetCommand_Struct, structs::PetCommand_Struct);

IN(command);
emu->unknown = eq->unknown04;
IN(target);

FINISH_DIRECT_DECODE();
}
Expand Down
9 changes: 5 additions & 4 deletions common/patches/rof2_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ struct TargetReject_Struct {

struct PetCommand_Struct {
/*00*/ uint32 command;
/*04*/ uint32 unknown04;
/*04*/ uint32 target;
/*08*/ uint32 unknown08;
};

Expand Down Expand Up @@ -1484,9 +1484,10 @@ struct CombatDamage_Struct
/* 04 */ uint8 type; //slashing, etc. 231 (0xE7) for spells
/* 05 */ uint32 spellid;
/* 09 */ int32 damage;
/* 13 */ float unknown11; // cd cc cc 3d
/* 17 */ float sequence; // see above notes in Action_Struct
/* 21 */ uint8 unknown19[9]; // was [9]
/* 13 */ float force; // cd cc cc 3d
/* 17 */ float meleepush_xy; // see above notes in Action_Struct
/* 21 */ float meleepush_z;
/* 25 */ uint8 unknown25[5]; // was [9]
/* 30 */
};

Expand Down
9 changes: 5 additions & 4 deletions common/patches/rof_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ struct TargetReject_Struct {

struct PetCommand_Struct {
/*00*/ uint32 command;
/*04*/ uint32 unknown04;
/*04*/ uint32 target;
/*08*/ uint32 unknown08;
};

Expand Down Expand Up @@ -1514,9 +1514,10 @@ struct CombatDamage_Struct
/* 04 */ uint8 type; //slashing, etc. 231 (0xE7) for spells
/* 05 */ uint32 spellid;
/* 09 */ int32 damage;
/* 13 */ float unknown11; // cd cc cc 3d
/* 17 */ float sequence; // see above notes in Action_Struct
/* 21 */ uint8 unknown19[9]; // was [9]
/* 13 */ float force; // cd cc cc 3d
/* 17 */ float meleepush_xy; // see above notes in Action_Struct
/* 21 */ float meleepush_z;
/* 25 */ uint8 unknown25[5]; // was [9]
/* 30 */
};

Expand Down
6 changes: 4 additions & 2 deletions common/patches/sod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ namespace SoD
OUT(type);
OUT(spellid);
OUT(damage);
eq->sequence = emu->sequence;
OUT(force)
OUT(meleepush_xy);
OUT(meleepush_z)

FINISH_ENCODE();
}
Expand Down Expand Up @@ -3349,7 +3351,7 @@ namespace SoD
default:
emu->command = eq->command;
}
OUT(unknown);
IN(target);

FINISH_DIRECT_DECODE();
}
Expand Down
9 changes: 5 additions & 4 deletions common/patches/sod_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ struct TargetReject_Struct {

struct PetCommand_Struct {
/*000*/ uint32 command;
/*004*/ uint32 unknown;
/*004*/ uint32 target;
};

/*
Expand Down Expand Up @@ -1272,9 +1272,10 @@ struct CombatDamage_Struct
/* 04 */ uint8 type; //slashing, etc. 231 (0xE7) for spells
/* 05 */ uint16 spellid;
/* 07 */ int32 damage;
/* 11 */ float unknown11; // cd cc cc 3d
/* 15 */ float sequence; // see above notes in Action_Struct
/* 19 */ uint8 unknown19[9]; // was [9]
/* 11 */ float force; // cd cc cc 3d
/* 15 */ float meleepush_xy; // see above notes in Action_Struct
/* 19 */ float meleepush_z;
/* 23 */ uint8 unknown23[5]; // was [9]
/* 28 */
};

Expand Down
6 changes: 4 additions & 2 deletions common/patches/sof.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ namespace SoF
OUT(type);
OUT(spellid);
OUT(damage);
eq->sequence = emu->sequence;
OUT(force)
OUT(meleepush_xy);
OUT(meleepush_z)

FINISH_ENCODE();
}
Expand Down Expand Up @@ -2687,7 +2689,7 @@ namespace SoF
default:
emu->command = eq->command;
}
OUT(unknown);
IN(target);

FINISH_DIRECT_DECODE();
}
Expand Down
9 changes: 5 additions & 4 deletions common/patches/sof_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ struct TargetReject_Struct {

struct PetCommand_Struct {
/*000*/ uint32 command;
/*004*/ uint32 unknown;
/*004*/ uint32 target;
};

/*
Expand Down Expand Up @@ -1249,9 +1249,10 @@ struct CombatDamage_Struct
/* 04 */ uint8 type; //slashing, etc. 231 (0xE7) for spells
/* 05 */ uint16 spellid;
/* 07 */ int32 damage;
/* 11 */ float unknown11; // cd cc cc 3d
/* 15 */ float sequence; // see above notes in Action_Struct
/* 19 */ uint8 unknown19[9]; // was [9]
/* 11 */ float force; // cd cc cc 3d
/* 15 */ float meleepush_xy; // see above notes in Action_Struct
/* 19 */ float meleepush_z;
/* 23 */ uint8 unknown23[5]; // was [9]
/* 28 */
};

Expand Down
16 changes: 8 additions & 8 deletions common/patches/titanium.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ namespace Titanium
EAT_ENCODE(OP_GuildMemberLevelUpdate); // added ;

EAT_ENCODE(OP_ZoneServerReady); // added ;

ENCODE(OP_Action)
{
ENCODE_LENGTH_EXACT(Action_Struct);
Expand Down Expand Up @@ -326,7 +326,7 @@ namespace Titanium
{
SETUP_VAR_ENCODE(ExpeditionCompass_Struct);
ALLOC_VAR_ENCODE(structs::ExpeditionCompass_Struct, sizeof(structs::ExpeditionInfo_Struct) + sizeof(structs::ExpeditionCompassEntry_Struct) * emu->count);

OUT(count);

for (uint32 i = 0; i < emu->count; ++i)
Expand Down Expand Up @@ -1308,7 +1308,7 @@ namespace Titanium
VARSTRUCT_ENCODE_TYPE(uint8, OutBuffer, emu->unknown12[11]);

VARSTRUCT_ENCODE_STRING(OutBuffer, new_message.c_str());

delete[] __emu_buffer;
dest->FastQueuePacket(&in, ack_req);
}
Expand Down Expand Up @@ -1351,7 +1351,7 @@ namespace Titanium
InBuffer += strlen(InBuffer) + 1;

memcpy(OutBuffer, InBuffer, sizeof(TaskDescriptionTrailer_Struct));

delete[] __emu_buffer;
dest->FastQueuePacket(&in, ack_req);
}
Expand Down Expand Up @@ -1621,7 +1621,7 @@ namespace Titanium

FINISH_DIRECT_DECODE();
}

DECODE(OP_ApplyPoison)
{
DECODE_LENGTH_EXACT(structs::ApplyPoison_Struct);
Expand Down Expand Up @@ -1942,7 +1942,7 @@ namespace Titanium
default:
emu->command = eq->command;
}
OUT(unknown);
IN(target);

FINISH_DIRECT_DECODE();
}
Expand Down Expand Up @@ -2151,7 +2151,7 @@ namespace Titanium

return serverSlot; // deprecated
}

static inline int16 ServerToTitaniumCorpseSlot(uint32 serverCorpseSlot)
{
//int16 TitaniumCorpse;
Expand All @@ -2166,7 +2166,7 @@ namespace Titanium

return titaniumSlot; // deprecated
}

static inline uint32 TitaniumToServerCorpseSlot(int16 titaniumCorpseSlot)
{
//uint32 ServerCorpse;
Expand Down
8 changes: 4 additions & 4 deletions common/patches/titanium_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ struct TargetReject_Struct {

struct PetCommand_Struct {
/*000*/ uint32 command;
/*004*/ uint32 unknown;
/*004*/ uint32 target;
};

/*
Expand Down Expand Up @@ -1101,9 +1101,9 @@ struct CombatDamage_Struct
/* 04 */ uint8 type; //slashing, etc. 231 (0xE7) for spells
/* 05 */ uint16 spellid;
/* 07 */ uint32 damage;
/* 11 */ uint32 unknown11;
/* 15 */ uint32 sequence; // see above notes in Action_Struct
/* 19 */ uint32 unknown19;
/* 11 */ float force;
/* 15 */ float meleepush_xy; // see above notes in Action_Struct
/* 19 */ float meleepush_z;
/* 23 */
};

Expand Down
12 changes: 7 additions & 5 deletions common/patches/uf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ namespace UF
OUT(type);
OUT(spellid);
OUT(damage);
eq->sequence = emu->sequence;
OUT(force)
OUT(meleepush_xy);
OUT(meleepush_z)

FINISH_ENCODE();
}
Expand Down Expand Up @@ -2213,7 +2215,7 @@ namespace UF
FINISH_ENCODE();
return;
}

unsigned char *emu_ptr = __emu_buffer;
emu_ptr += sizeof(CharacterSelect_Struct);
CharacterSelectEntry_Struct *emu_cse = (CharacterSelectEntry_Struct *)nullptr;
Expand Down Expand Up @@ -3356,7 +3358,7 @@ namespace UF
IN(type);
IN(spellid);
IN(damage);
emu->sequence = eq->sequence;
IN(meleepush_xy);

FINISH_DIRECT_DECODE();
}
Expand Down Expand Up @@ -3599,7 +3601,7 @@ namespace UF
SETUP_DIRECT_DECODE(PetCommand_Struct, structs::PetCommand_Struct);

IN(command);
IN(unknown);
IN(target);

FINISH_DIRECT_DECODE();
}
Expand Down Expand Up @@ -3861,7 +3863,7 @@ namespace UF

UF::structs::ItemSerializationHeaderFinish hdrf;
hdrf.ornamentIcon = ornaIcon;
hdrf.unknown060 = 0; //This is Always 0.. or it breaks shit..
hdrf.unknown060 = 0; //This is Always 0.. or it breaks shit..
hdrf.unknown061 = 0; //possibly ornament / special ornament
hdrf.isCopied = 0; //Flag for item to be 'Copied'
hdrf.ItemClass = item->ItemClass;
Expand Down
9 changes: 5 additions & 4 deletions common/patches/uf_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ struct TargetReject_Struct {

struct PetCommand_Struct {
/*000*/ uint32 command;
/*004*/ uint32 unknown;
/*004*/ uint32 target;
};

/*
Expand Down Expand Up @@ -1330,9 +1330,10 @@ struct CombatDamage_Struct
/* 04 */ uint8 type; //slashing, etc. 231 (0xE7) for spells
/* 05 */ uint16 spellid;
/* 07 */ int32 damage;
/* 11 */ float unknown11; // cd cc cc 3d
/* 15 */ float sequence; // see above notes in Action_Struct
/* 19 */ uint8 unknown19[9]; // was [9]
/* 11 */ float force; // cd cc cc 3d
/* 15 */ float meleepush_xy; // see above notes in Action_Struct
/* 19 */ float meleepush_z;
/* 23 */ uint8 unknown23[5]; // was [9]
/* 28 */
};

Expand Down
2 changes: 2 additions & 0 deletions common/races.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#define IKSAR 128
#define VAHSHIR 130
#define CONTROLLED_BOAT 141
#define MINOR_ILL_OBJ 142
#define TREE 143
#define IKSAR_SKELETON 161
#define FROGLOK 330
#define FROGLOK2 74 // Not sure why /who all reports race as 74 for frogloks
Expand Down
Loading

0 comments on commit 79928c1

Please sign in to comment.