megamage
208087ff6e
[8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
...
Also some code logic cleanups.
Changes let make more cleanups in base map access and other places,
but this chnages not inlcuded in patch.
*This patch may cause crash.
--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
QAston
f5eb5dba7c
*Add an Assert to trac where GO pointer is getting corrupted.
...
--HG--
branch : trunk
2009-07-12 22:08:32 +02:00
QAston
04a39ce6df
*Fix sniper training - by Astellar.
...
*Correct GO delete call in Gameobject::Update.
--HG--
branch : trunk
2009-07-12 13:38:38 +02:00
megamage
b5d802b70c
[8151] Fixed some format warnings and typos. Author: Win32
...
--HG--
branch : trunk
2009-07-12 17:52:27 +08:00
Destalker
ff7a90db5f
*Allow Illumination to proc on Holy Shock.
...
--HG--
branch : trunk
2009-07-11 21:32:41 +02:00
QAston
6af0b55dd7
*Fix compile - sorry for that:/.
...
--HG--
branch : trunk
2009-07-10 16:29:43 +02:00
QAston
5afb67e7da
Backed out changeset 07af7c674639
...
--HG--
branch : trunk
2009-07-08 14:29:40 +02:00
bigjohnson4
7d39f4ab22
*Fix client crash with barbershop chair
...
--HG--
branch : trunk
2009-07-06 17:03:08 +02:00
QAston
6af144277d
*Temporary fix for crash caused by object list update.
...
--HG--
branch : trunk
2009-07-04 21:07:06 +02:00
megamage
4a8a89e1db
[8103] More wide use IsInWorld checks and delayed at teleport operations. Author: Ambal
...
* IsInWorld used to prevent return unexpected not in world objects.
* Delayed operations need to process its in world state.
--HG--
branch : trunk
2009-07-01 18:36:03 -05: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
Machiavelli
3a309abfab
* In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
...
* Other minor cleanups, Null pointer checks etc.
--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
megamage
3cf2be6042
[8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
...
--HG--
branch : trunk
2009-06-16 11:19:59 -05:00
megamage
f53b049759
*Fix a crash caused by passive traps.
...
--HG--
branch : trunk
2009-06-15 09:49:16 -05:00
QAston
f874ca629e
*Set target guid as original caster guid for GO casts.
...
--HG--
branch : trunk
2009-06-13 14:01:10 +02: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
37dabaf71e
[7969] Remove gameobject from owner gameobjecs list at expire. Author: Ambal
...
This will prevent delayd owner access from gameobject destructor
in time remove list proccessing and fix possible related problems
with crosslinked pointers.
--HG--
branch : trunk
2009-06-06 20:24:50 -05:00
megamage
72ac0a2452
*Fix incorrect check of trap charges.
...
--HG--
branch : trunk
2009-06-06 19:59:04 -05:00
megamage
95bde24500
*Allow traps without a spell be triggered. This fixes the bug that Sapphiron cannot be summoned.
...
--HG--
branch : trunk
2009-06-05 13:16:54 -05:00
panaut0lordv
cc4a380722
*Some renames for GO type 33 for easier merging.
...
--HG--
branch : trunk
2009-06-04 18:32:24 +02:00
megamage
38fd158c40
*Fix the bug that some traps without charges and spell radius cannot be triggered.
...
*Provide spell support for quest 12698
--HG--
branch : trunk
2009-06-03 23:24:57 -05:00
megamage
77889ffa8b
*Save/load wintergrasp building health when grid loaded/unloaded.
...
--HG--
branch : trunk
2009-06-01 23:45:55 -05:00
megamage
e1058deaed
[7933] Call goober GO event script not only at open spell cast, also really call camera GO event scripts. Author: NoFantasy
...
--HG--
branch : trunk
2009-06-01 21:50:12 -05:00
megamage
b5a098643f
*Display correct building damage state/team on map in wintergrasp.
...
*Rebuild buidlings after fortress is taken over.
--HG--
branch : trunk
2009-06-01 12:48:12 -05:00
megamage
76e4dfe8dd
*Store creatureData and goData for creatures and gos.
...
--HG--
branch : trunk
2009-05-31 21:04:04 -05:00
megamage
da871e2fc0
*Move addcre/go functions from opvp to objmgr.
...
*Do not save respawn time for internally added cre/go.
--HG--
branch : trunk
2009-05-31 14:26:57 -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
bc32144310
*Update OutdoorPvP functions. No longer need creature triggers for capture points.
...
--HG--
branch : trunk
2009-05-29 00:18:41 -05:00
megamage
320ac7f91e
*Do not use GO guid as original caster guid. (not supported for now)
...
--HG--
branch : trunk
2009-05-25 21:18:02 -05:00
megamage
4ed847a6e3
*Implement spell effect wmo damage.
...
--HG--
branch : trunk
2009-05-21 10:01:03 -05:00
QAston
4a20e22af3
*Do not proc relentless strikes with slice and dice twice
...
*Fix trap radius calculation in some cases-by krz
--HG--
branch : trunk
2009-05-15 16:51:26 +02:00
megamage
08a0c543d1
*Fix some typos of script functions.
...
--HG--
branch : trunk
2009-05-09 14:08:11 -05:00
megamage
6592e99f4a
*Some update of spell target selection.
...
--HG--
branch : trunk
2009-05-09 10:48:14 -05:00
megamage
3f6f15e34b
*Update instance script functions.
...
--HG--
branch : trunk
2009-05-06 00:06:38 -05:00
megamage
db817d668a
*Merge.
...
--HG--
branch : trunk
2009-05-01 18:37:32 -05:00
megamage
c9cd3b07f9
*Add some InstanceData functions to better handle instance doors.
...
--HG--
branch : trunk
2009-05-01 18:24:12 -05:00
megamage
0e3453e6d4
*Add function Gobject::sendcustomanim
...
--HG--
branch : trunk
2009-04-30 12:01:08 -05:00
megamage
de11b9e901
[7730] Some optimizantion and code style. Author: zhenya
...
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
megamage
5ac67c27f7
[7715] Provided way for scripts set alternative gameobject state for client show. Author: VladimirMangos
...
Also use enum for gsmeobject states.
--HG--
branch : trunk
2009-04-27 18:36:10 -05:00
megamage
fc7e1db9fb
[7690] Move GetCreature/GetGameobject to class Map. Author: VladimirMangos
...
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
--HG--
branch : trunk
2009-04-20 20:28:19 -05:00
megamage
5d2968792f
*Try to fix a crash by not allowing trap grid visit creating new grid.
...
--HG--
branch : trunk
2009-04-18 10:37:15 -05:00
megamage
ca5894b348
[7682] Implement support ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT Author: Trazom
...
--HG--
branch : trunk
2009-04-17 15:22:27 -05:00
megamage
fa0492ccce
[7634] Fixed: select non-despawnable gameobjects base at appropriate for gameobject type dataN fields. Author: VladimirMangos
...
Many in world gameobject that unexpected daspawned before must now work in more expected way.
In tests i not found any damage to bg gameobject work, and at least this restore expected work for non-bg dorrs//buttons broken
after half-year ago patch (that has been reverted partly in this commit)
--HG--
branch : trunk
2009-04-08 16:35:13 -05:00
megamage
5acc0c057b
[7612] Move SMSG_TRIGGER_CINEMATIC and SMSG_TRIGGER_MOVIE to functions and use its instead explicit packet creating. Author: NoFantasy
...
--HG--
branch : trunk
2009-04-05 16:25:00 -05:00
megamage
031df598ab
*Try to fix crash.
...
--HG--
branch : trunk
2009-03-31 09:18:39 -06:00
megamage
eb894f39e8
*First remove object from world then unregister it. This may fix some crashes.
...
--HG--
branch : trunk
2009-03-28 16:04:37 -06:00
megamage
312b8e5b73
*Merge.
...
--HG--
branch : trunk
2009-03-25 16:00:38 -06:00
megamage
581ae2719d
*Do not allow to add/remove obj to/from world more than once.
...
--HG--
branch : trunk
2009-03-25 15:54:23 -06:00
megamage
59ce40e484
*Remove dual ERROR in logs Author: AlexDereka
...
--HG--
branch : trunk
2009-03-21 14:28:02 -06:00
megamage
64ce6533a9
*Update gameobject visual and command. By Vladimir.
...
--HG--
branch : trunk
2009-03-19 15:16:02 -06:00