Commit graph

2560 commits

Author SHA1 Message Date
NoFantasy
de4d8c3a04 [9210] Fix visual bug making npc run-in-same-position in client.
Not send MOVEMENTFLAG_FORWARD (even if expected). As result npc will not run in same position when npc becomes visible at client side.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-18 20:38:36 +01:00
VladimirMangos
e1d0c1cdba [9209] Finish synchonization walk mode for pets.
* Re-sync at follow mode switches
* Support sync for creature pets

Also
* Attempt fix build at *nix
* Drop unused unut state mask with typo in name.
2010-01-18 14:35:19 +03:00
VladimirMangos
6a2e8064f1 [9208] Big cleanup in UNIT_STAT_* use
* Re-number enums by function groups and use where possible new defined masks in code instead raw enum |-lists.
* Avoid use movement generator generic state markers like UNIT_STAT_CONFUSED for mark movement stoped.
  Add special shadow UNIT_STAT_CONFUSED_MOVE/etc states for like use.
  UNIT_STAT_CONFUSED in like case will be safe expect use for normal checks confused state presence
  And UNIT_STAT_CONFUSED_MOVE for check real move in this state
2010-01-18 11:59:10 +03:00
VladimirMangos
7d6b1b292e [9207] Fixed chase/follow functions calls in movegen templates system.
This commit specially made indeepndent from other changes for show problem
in my prev. commit where 2 new movegens added.

For proper call Initilize/Finilize/Reset/Interrupt/Update functions _important_
set second template arg in MovementGeneratorMedium< T, D >
in _last_ class in class chain. In other case in chase/follow instead TargetedMovementGeneratorMedium
In other cases will called referenced functions from TargetedMovementGeneratorMedium
instead proper subclasses.
2010-01-18 10:33:56 +03:00
VladimirMangos
98adbbc3d3 [9206] Some code cleanups.
* UNIT_STAT_SEARCHING not used
* Remove some commented wrong code
* WaypointMovementGenerator<Creature>::Initialize() not have code
2010-01-18 09:13:50 +03:00
NoFantasy
544d396beb [9205] Move script call GOHello to GameObject::Use
This provide more accurate call in case of delay use from spell effects

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 23:44:33 +01:00
NoFantasy
16c0ff3ef7 [9204] Move remaining handling of GO from SendLoot to GameObject::Use
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 23:06:31 +01:00
NoFantasy
925ea7630e [9203] Use CalculateSimpleValue as delay, used in spell effect 86
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 17:05:54 +01:00
VladimirMangos
f94b7b4452 [9202] In attempt make GCC happy with chase/follow movegens code. 2010-01-17 17:58:28 +03:00
NoFantasy
55b6b0eb26 [9201] Fix typo from [9200] and clean up code in function.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 12:02:45 +01:00
NoFantasy
95f9ec5fb2 [9200] Move handling of most GO's from SendLoot() to GameObject::Use()
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 11:45:14 +01:00
NoFantasy
07a5c698ca [9199] Clarify debug log message in GameObject::Use
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 10:52:01 +01:00
VladimirMangos
8a03785470 [9198] Replace targeted movegen by 2 new: chase/follow movegens.
NOTE: this is mostly just formal adding 2 movegens with very limited cleanups.
Real result from adding 2 new movegens possible after apply more deep cleanups/fixes
in UNIT_STAT_CHASE/UNIT_STAT_FOLLOW set. But this will need more cereful changes
because we have currently sometime strange dependences and places for set for this flags.
Similar cleanups required for other movegen related flags. Infact i have related patches but
need more testing before apply step by step.
2010-01-17 09:37:11 +03:00
VladimirMangos
2e9bf5ad6a [9197] More propertly update walk mode for player pets.
* Use AddMonsterMoveFlag instead SetMonsterMoveFlags for set walk-mode
* Apply walk/run mode to all copntrolled units (except totems).
* Synchronize walk/run mode at pet creating/loading.
2010-01-17 07:51:00 +03:00
VladimirMangos
b0809f63b2 [9196] Prevent corrupt in-game used strings by DB escaping. 2010-01-17 05:54:18 +03:00
NoFantasy
dd27fa0f6e [9195] Update some comments for GO autoCloseTime to reflect changes in 9179
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 02:14:33 +01:00
VladimirMangos
ccbf14d4ac [9194] Implement default min player per team at BG same as max players.
This let use now default requirement for not set in `battleground_template` min/max values (or =0)
In other cases just set expected data into template table.
2010-01-17 02:31:42 +03:00
VladimirMangos
0a1dd54b7f [9193] Implement dummy effect for 46797. 2010-01-16 22:55:00 +03:00
VladimirMangos
d59c394370 [9192] Fixed typo in error output for lock id gameobject template data check. 2010-01-16 20:58:19 +03:00
VladimirMangos
c6d378ad70 [9191] Fixed crashes related to recently totem acccess function
* No search if not in world (no totems then)
* Check NULL.
2010-01-16 18:17:53 +03:00
NoFantasy
5a4944385e [9190] Remove not needed and currently unused header file
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-16 09:20:12 +01:00
VladimirMangos
6f703bab57 [9189] Fixed build error at *nix. 2010-01-16 08:37:50 +03:00
VladimirMangos
132b1cbabd [9188] Implement MoveGen::Interrupt call.
It can be used in time when need do some tasks before
another movement generator add on top to motion stack.
This just finish pair Interrupt->Reset similar Initilize->Finilize
In general movementgenerator have states:

Initilize=>Interrupt<=>[-some addition movegen->]<=>Reset=>Finalize
2010-01-16 07:02:13 +03:00
VladimirMangos
cc062f16ac [9187] Fixed problem with non-attackable pes/totems at arenas
... and other FFA areas. Problem is result chnages in related flags work after old 3.x switch.

* Added high-level functions for FFAPvP state set for unit
* Apply FFA PvP to all controlled units also at set, and at summon/load
2010-01-16 05:41:42 +03:00
VladimirMangos
6704929d56 [9186] Templated functions for apply some code to all controlled units.
Also fix some related problems with not updates totems/etc
2010-01-16 04:41:44 +03:00
VladimirMangos
7272b52daf [9185] Auto-leave player at login back to bg/arena when bg/arena finished. 2010-01-16 03:13:26 +03:00
VladimirMangos
1adcf67349 [9184] Fixed unread packet tail spam for CMSG_LEAVE_BATTLEFIELD 2010-01-16 03:12:54 +03:00
NoFantasy
ed06932361 [9183] Add filter in VC project files for motion/movement generators and related
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 11:55:39 +01:00
NoFantasy
dbf0fafbfe [9182] Replace 0 with NULL in a few CastSpell calls (removed where not needed)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:43:02 +01:00
NoFantasy
0d6b7f144c [9181] Rewrite parts of GameObject use for GO type 10
This implement using autoclose time for type 10 and also sending a custom animation for some.
To avoid duplicate code, remove code from SendLoot() (handled in Use() instead)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:23:45 +01:00
NoFantasy
a461652636 [9180] Add function to send custom animation for GameObject
Replace in code where packet used explicit.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:01:41 +01:00
NoFantasy
c4b0406e7d [9179] Update formula for GameObject 'autoclose' time (dataN-field in _template)
This require database support/dataN-fields update for correct calculation of time (now in milliseconds)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 00:43:53 +01:00
VladimirMangos
98f3ed3d4b [9178] Lost changesat my prev. push :( 2010-01-14 21:11:16 +03:00
XTZGZoReX
9b1f98b5d9 [9177] Remove /Wp64 option for git_id vcproj files.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-14 21:04:41 +03:00
XTZGZoReX
ee26f74796 [9176] Add commented check for unit_class == 0.
In fact creature unit class must not be 0, but some creatures (like triggers) have this.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-14 21:00:41 +03:00
VladimirMangos
9901282592 [9175] Remove duplicate fclose call.
At some platform can cause cras at server startup.
2010-01-14 17:12:04 +03:00
Rockette
f02d897828 [9174] Target limit for spell 25991.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-14 13:06:43 +03:00
VladimirMangos
1def2a0977 [9173] Remove character_queststatus_daily data at character delete.
Data deleted anyway at next daily status update so just more early and expected cleanup.
2010-01-14 08:10:15 +03:00
VladimirMangos
cd1c1942e3 [9172] Fixed unreaded packet tail spam at group inviting. 2010-01-14 08:01:13 +03:00
NoFantasy
12096177e2 [9171] Update pet and minipet monster move flag at player toggle walk/run
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-13 14:52:59 +01:00
VladimirMangos
83bd854030 [9170] Impleament DBCs build check at server startup.
* Extractor now include in extarcted DBC dir data file with build info.
* Mangosd use this data for check at startup for main DBC dir and DBC local subdirs intergrity.
* Also updates DBC checks for raw data.

NOTE: You need reextract DBC data by _new_ extractor for correct work mangosd.
2010-01-13 11:40:27 +03:00
VladimirMangos
10de01c6f7 [9169] Move accaptable builds check/list preparing to functions.
Maybe DBCStore.* not best place for its but we not have src/game local file for common functions...
2010-01-13 09:20:21 +03:00
VladimirMangos
e246b49e55 [9168] Correctly work with alternative locale names.
Allow use enGB locale subdirectory for DBC files.
2010-01-13 07:55:48 +03:00
VladimirMangos
3d7d7fd512 [9167] Remove unused arg in new function added to prev. commit.
Also update ad.exe
2010-01-13 06:03:56 +03:00
VladimirMangos
2d37ac049a [9166] Fixes/cleanups in extarctor code.
* Avoid create debug binary version with space in name, ignore it in git changes.
* Alow filenum == 0 in archive file lists. Some currently not loaded fiels have its
  for example in case when in archive single file.

NOTE: no change in extracted files, so not need re-execute.
2010-01-13 05:55:43 +03:00
NoFantasy
23a77a1d36 [9165] Implement speed reduction at creatures DoFleeToGetAssistance
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-13 02:26:08 +01:00
VladimirMangos
1e8e8f5fd2 [9164] Use enum for CONFIG_SKIP_CINEMATICS values.
Just small code cleanup ;)
2010-01-13 02:10:51 +03:00
Splinter
6c7e0fccd2 [9163] Update splitConfig.txt for vmap generations.
This will fix large size some generated vmap files and optimize server work with its.

NOTE: in fact no changes in real in game data but for optimize work better regenerate vmaps with new splitConfig.txt.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-13 02:05:54 +03:00
sixsixnine
b29f53e6e9 [9162] Allow SPELL_AURA_PERIODIC_LEECH to crit if able to.
This allow DoT crits from 2944 and ranks for example.

(based on commit be72957)

Also included improvement from Lynx3d for resilence and crit threat affect.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-12 14:29:40 +03:00
VladimirMangos
8c3289720e [9161] Drop unexpected added copy of sql update. 2010-01-12 12:10:50 +03:00