Commit Graph
66 Commits
Author SHA1 Message Date
Anubisss ce8cc85dfa Make a function(ToTempSummon()) which can convert Creature to TempSummon with a C++ cast(reinterpret_cast) and with a type check(isSummon()).
This function is like ToPlayer(), ToTotem(), etc.

This commit is like ede831bdd6f0cff481acc33f269fa7f8c78befd4 / r7496:
http://code.google.com/p/trinitycore/source/detail?r=ede831bdd6f0cff481acc33f269fa7f8c78befd4
As a result, this commit has the advantages and the "disadvantages" too, like r7496.

Please try to be polite if this commit causes some crashes.

--HG--
branch : trunk
2010-03-27 16:08:14 +01:00
silverice 5f60483033 cleanups in vehicle accessories storage
transfer accesory list by pointer, make it constant

--HG--
branch : trunk
2010-03-25 04:09:26 +02:00
Xanadu 59e0d42260 Added (blizzlike) packet broadcast to near teleport. Thanks to Zor and nalimleinad (AKA anonymous colleague #1) for research.
--HG--
branch : trunk
2010-03-18 17:58:27 +01:00
Spp d2a3f9670f Move vehicle accesories to DB.
Credit to Malcrom and Manuel for the idea and original patch

--HG--
branch : trunk
2010-03-12 18:19:50 +01:00
raczman 07f3b91426 Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()

--HG--
branch : trunk
2010-03-07 18:30:53 +01:00
raczman 91b8ee104e Added new type-safe cast functions.
This, when properly used, should get rid of most memory corruption issues,
currently, casting types C-style with no checks leads to some abstract crashing.
Functionality is same as with dynamic_cast<>, but with no RTTI check - so when
casting into invalid type you will receive NULL, and most probably crash.
At the same time, i took the liberty to convert most Player* casts to ToPlayer().
Still needs crapload of casts being moved to new facility.

--HG--
branch : trunk
2010-03-07 15:20:19 +01:00
_manuel_ 23b1a482c9 Changes in Trial of the Champion:
-Implemented new scripts for Grand Champions, it includes vehicle fight (it is not 100 % done)
-Implemented more Vehicles Accessories. (related with the instance)
-Implemented basic support for event at spawn or dead from Boss Eadric/Paletress.
-Implemented basic support for event at spawn from Boss Black Knight.

For a complete fix see TDB forum > New Fix Submissions > Core related DB content.

--HG--
branch : trunk
2010-02-02 23:25:46 -03:00
silver1ce cfca61b176 Auras with turn/move interrupt flags are now removed for creatures when they turn/move, cleanup
--HG--
branch : trunk
2010-01-18 21:51:45 +02:00
silver1ce 2c03836a7c some changes into grid relocations, cleanup
player with incorrect coordinates wouldn't be added into map,
fixed problem that sometimes grid not marked as active even with players inside

--HG--
branch : trunk
2010-01-16 11:43:47 +02:00
thenecromancer ea4e25f3aa Implement vehicles created by player mounts.
Original idea by Elmaster, packet research by Wrong, ty.

--HG--
branch : trunk
2010-01-13 11:16:38 +01:00
_manuel_ 9676a05e03 Added vehicles for Grand Champion Bosses. It needs db support for vehicleids.
--HG--
branch : trunk
2009-12-30 18:19:59 -03:00
maximius 3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius 26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
megamage 0b605fcb88 *Add a dk quest sql back. It was removed by mistake in 5119, but was never added back.
--HG--
branch : trunk
2009-09-04 22:41:39 -05:00
megamage 1e7386c638 [8442] Change some unit flag names. Author: NoFantasy
--HG--
branch : trunk
2009-09-01 17:21:22 -05:00
megamage 3ea312cad5 *Update Kologarn script.
--HG--
branch : trunk
2009-08-30 18:38:54 -05:00
megamage d802cd3811 *More update about positions.
*Ulduar: do not allow demolisher to regenerate pyrite. Player must shoot down and grab the containers to refill pyrite.

--HG--
branch : trunk
2009-08-29 23:20:16 -05:00
megamage 2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage ab5f515f21 *Update flame levi script. Allow player to shoot down pyrite container and refill the demolishers.
*Other script-related fixes.

--HG--
branch : trunk
2009-08-28 11:26:20 -05:00
megamage a795df9cca *Remove function passengerleft
--HG--
branch : trunk
2009-08-27 19:26:18 -05:00
megamage 21af4cf832 *Some clean up and add debug info to find the reason of crash.
--HG--
branch : trunk
2009-08-26 19:28:21 -05:00
megamage bcc23fac92 *Fix a bug that dk's ghoul generates energy twice per tick.
--HG--
branch : trunk
2009-08-24 11:35:01 -05:00
megamage 1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage dee4a9fd87 *Update flame leviathan script.
--HG--
branch : trunk
2009-08-23 01:08:09 -05:00
megamage 39accddb5f *Let all accessories enterevademode when vehicle enter evade mode.
--HG--
branch : trunk
2009-08-22 21:25:35 -05:00
megamage 411902af03 *Dismiss summoned vehicle when it is dead.
--HG--
branch : trunk
2009-08-19 23:02:54 -05:00
megamage c88304af95 *Add some vehicle ai functions.
--HG--
branch : trunk
2009-08-15 20:36:54 -05:00
megamage 658538a092 *Some update of vehicle.
--HG--
branch : trunk
2009-08-08 11:57:51 -05:00
QAston 99ef71cbc4 *Fix some problems with charmer removing started with rev 4402.
--HG--
branch : trunk
2009-07-09 18:18:41 +02:00
megamage 111dac5f94 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
    * Create Gameobject version to make GO with owner more safe for remove

--HG--
branch : trunk
2009-07-01 18:23:36 -05:00
QAston e58230d506 *Add security check to Vehicle::InstallAccessory.
--HG--
branch : trunk
2009-06-24 01:50:59 +02:00
megamage 8f0cb4a3a2 *Fix a crash caused by vehicles.
--HG--
branch : trunk
2009-06-19 17:04:45 -05:00
megamage 15a753351c *Fix or add debug message for crash caused by controlled creatures
--HG--
branch : trunk
2009-06-19 11:19:23 -05:00
megamage c6765f9365 *Allow to force to respawn creatures.
*Save creature data for vehicles.
*Change some visibility update sequence of respawned creatures.
*Fix bugs of quest 12687: dark rider may not be on horse / horse cannot be used twice / horse does not respawn at correct phase

--HG--
branch : trunk
2009-06-17 01:01:39 -05:00
megamage b9610f27dd *Check movementflag to interrupt casting instead of checking position.
*Also some other fixes about movement flags.

--HG--
branch : trunk
2009-06-15 12:02:55 -05:00
megamage 1cacf0267e *Some update of vehicle.
--HG--
branch : trunk
2009-06-14 21:04:20 -05:00
megamage e192d8f39b *Some work on vehicle.
--HG--
branch : trunk
2009-06-14 09:57:57 -05:00
megamage ee9c12b480 *Some fix of vehicles. Thanks to Seizerkiller.
--HG--
branch : trunk
2009-06-13 09:18:54 -05:00
megamage 9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage a8dbf8904c *Correctly show spellclick flag for vehicles and creatures with info in spellclick table.
--HG--
branch : trunk
2009-06-08 23:43:25 -05:00
megamage 13fd9ea601 *Apply tenacity buff on vehicles of wintergrasp.
*Fix the bug that tenacity is not applied on horde players.

--HG--
branch : trunk
2009-06-05 14:21:25 -05:00
megamage c70e6a003e *Use setcharmedby and removecharmedby in enter/exit vehicle functions.
*Fix build.

--HG--
branch : trunk
2009-06-03 13:51:05 -05:00
megamage 297ce013a8 *Disable vehicle/creature driver movement when entering vehicle.
--HG--
branch : trunk
2009-06-03 00:24:07 -05:00
megamage 8d1f4f9ea0 *Provide another way to implement dynamic spawns. Now a creature will call its zonescript before spawn to determine the spawned entry. This can be used to implement zones such as wintergrasp with less data requirement (only need to know the entry of counterpart creatures, not require spawn points)
*Use zonescript as basic class of opvp script and dugeon script (can also be used for bg)
*Store zonescript in worldobject.
*Add door for sapphiron.

--HG--
branch : trunk
2009-05-30 22:15:05 -05:00
megamage ffca6ec384 *Change vehicle faction the same as the driver's when driver enters it.
*Fix 3593 sql.

--HG--
branch : trunk
2009-05-27 12:42:38 -05:00
megamage 2780893030 *Fix a bug that player can change to an occupied seat on vehicle.
*Load full creature data for vehicles.

--HG--
branch : trunk
2009-05-23 20:40:14 -05:00
megamage ab5b273d3c *Some work on wintergrasp. Player can get ranks by killing other players and can build vehicles at workshop. Vehicles can be used to destroy buildings. Except these no other thing is done.
--HG--
branch : trunk
2009-05-22 10:29:48 -05:00
megamage f722b9b4c5 *Fix a crash caused by vehicle.
--HG--
branch : trunk
2009-04-28 13:25:08 -05:00
megamage a72f23f56b *Some update of vehicle code.
--HG--
branch : trunk
2009-04-25 08:58:16 -05:00