Commit Graph

182 Commits

Author SHA1 Message Date
Gyx
fcbb222aca Core/Script: Clean-Up in Scripts.
Creature* c -> Creature* creature
Creature* _Creature -> Creature* creature
Creature* Creature -> Creature* creature

Signed-off-by: Gyx <2359980687@qq.com>
2012-03-16 19:21:47 +08:00
leak
2a5caef4a6 Revert "Core: more more cleanup" - Build test anyone?
This reverts commit 20cd4c71ee.
2012-03-14 18:51:51 +01:00
thomas33
20cd4c71ee Core: more more cleanup 2012-03-14 17:51:11 +01:00
Gyx
117fbb9010 Core/Script: Clean-Up in Scripts.
InstanceScript* Instance -> InstanceScript* instance

Signed-off-by: Gyx <2359980687@qq.com>
2012-03-14 09:30:06 +08:00
Gyx
e8f414e143 Core/Script: Clean-Up in Scripts.
Creature* c -> Creature* creature

Signed-off-by: Gyx <2359980687@qq.com>
2012-03-14 09:20:36 +08:00
Machiavelli
03a24a84e4 Core/Units:
- Implement UNIT_FIELD_HOVERHEIGHT (requires DB data). This field, sent in update object packet, will determine the height at which a creature hovers if it has movementflag_hover applied. Note that hovering will now update the server-sided z-coordinate by the value of this field, and that all subsequent positional updates to the client will need to send z coordinate MINUS the hover height offset, or the hoverheight will be visually doubled client side.
- Correct our usage of movementflag_flying, movementflag_can_fly, movementflag_hover and movementflag_disable_gravity (previously levitate), and how they relate to InhabitType in the database. This fixes "flying creatures on steroids" bug (wings flapping too fast), and potentially a lot of visual issues in AI scripts. Note that a lot of scripts still set wrong movementflags, these need to be fixed on a case by case basis.
- Send correct packets for SPELL_AURA_FEATHER_FALL, SPELL_AURA_WATER_WALK and SPELL_AURA_HOVER apply/unapply.
- Send correct packet contents for movement update in Unit::SetSpeed.
- Misc. cleanup in affected scripts.
2012-03-12 00:53:45 +01:00
Nay
2b2d054f64 R.I.P SimpleAI
- Convert SimpleAI to (DB) SmartAI
- Spell ids corrected (and completed some of the scripts)
- Random cleanup (code style) in some scripts
2012-03-11 16:59:17 +00:00
Shauren
3cf8b9a15a Scripts/Serpentshrine Cavern: Fixed crashes caused by uninitialized variables, patch by PuniCZ
Closes #4988
Closes #5645
2012-03-11 15:03:29 +01:00
frozenarmor
609728a17b Update forgotten copyright-headers for 2012.
Signed-off-by: frozenarmor <venom.victorios@gmail.com>
2012-03-11 00:52:06 +05:00
Spp
f495e0efe4 Warning fixes and some random cleanup here and there 2012-03-07 14:09:18 +01:00
Spp
d38bc3a178 Core: Rename GetCreatureInfo to GetCreatureTemplate and minor cleanup here and there 2012-02-27 14:58:47 +01:00
Venugh
5416b734e4 Core/Movement: Use SetLevitate(true/false) instead of AddUnit/RemoveUnit. 2012-02-23 12:32:21 +01:00
Venugh
1cac01b3df Core/Movement: Use SetWalk(true/false) instead of AddUnit/RemoveUnit. 2012-02-23 11:50:58 +01:00
click
dce3bc01ac Core: Fix non-PCH building 2012-02-19 16:57:07 +01:00
click
5411e1ce52 Core: Clean up whitespace and tabs in the base sourcetree 2012-02-18 16:52:08 +01:00
Kandera
c517806a23 Scripts/Spells: Convert code from Spell::EffectDummy to spell scripts. 2012-02-18 12:12:49 +01:00
Spp
03c34ee507 Fix a lot of warnings 2012-02-16 13:56:28 +01:00
Subv
9791bb599a Merge pull request #5160 from TrinityCore/dynamic_vmaps
Added Dynamic Vmaps, RE-EXTRACT YOUR VMAPS
2012-02-09 11:17:05 -08:00
Subv2112
93d199f043 Core/Collision: Ported dynamic line of sight patch by Silverice from MaNGOS and
added lots of improvements
Please re-extract vmaps
2012-02-09 13:58:22 -05:00
Matthew Goff
7a117dd429 Core/Misc:
- Replace emote magic number by enum
- Added all missing defines from AnimationData.dbc. Minor corrections to existing ones. Standardized some naming and updated cpp files as needed.
- Correct a spell used in AQ
Closes #3787
Closes #5095
2012-02-06 01:22:45 +00:00
QAston
c7ea952a47 Core/Entities: Rename UNIT_FLAG_OOC_NOT_ATTACKABLE and UNIT_FLAG_PASSIVE to UNIT_FLAG_IMMUNE_TO_PC and UNIT_FLAG_IMMUNE_TO_NPC respectively. New names tell much more about what those flags do. 2012-02-03 18:46:05 +01:00
Shocker
08be716ef8 Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_* 2012-02-03 19:02:17 +02:00
click
e6d5b21778 Core: Fix non-PCH build and remove a few warnings. 2012-01-24 00:24:39 +01:00
Machiavelli
dbbac0bdaa Core/Movement: Implement spline movement subsystem.
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc).
Proper implementation of effects such as charge, jump, cyclic movement will rely on it.
However, need improve our states system before.

Technical changes:

* Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation.
* Precission increased. There are no more position desync issues since client's position calculation formulas used.
* Now possible to move by paths with multiple points, send whole path to client.

--
Original author of research and implementation: SilverIce. Massive kudos.
Original port for Trinity (ref #4629) Chaplain and Venugh
With the following incremental fixes during my review:

- Restore flightmaster end grid pre-loading
- Fix uninitialized Creature::m_path_id
- Add missing trinity_string entries for .movegens command
- Fix a bug in WaypointMovementGenerator that would trigger unexpected pausing at waypoints for various amounts of time

Known issues:
- Errors like WaypointMovementGenerator::LoadPath creature XXX (Entry: YYYYY GUID: ZZZZZZ) doesn't have waypoint path id: 0.
This is caused by bad DB data. This commit didn't "break" it.

Do not forget to re-run CMake before compiling.
2012-01-14 15:36:07 +01:00
Venugh
b242a19ad5 Core/Scripts: remove define from arcatraz. 2012-01-13 22:02:04 +01:00
Venugh
d359c87908 Core/Scripts: Convert Warden Mellichar texts to creature_texts. 2012-01-13 21:59:21 +01:00
Venugh
e6b159f7ea Core/Scripts: Correct rand change. thanks to Nayd for explain. 2012-01-13 21:41:45 +01:00
Venugh
6929fff8d6 Core/Scripts: Convert MillHouse Manastorm texts to creature_texts. 2012-01-13 21:13:18 +01:00
kaelima
233d891952 Scripts/Achievements:
- Move achievement Shocking! to appropriate boss script instead of instance script.
- Split the polarity spellscript into two and move to proper boss file
- Fixed a typo in Loatheb's spore achievement.
2012-01-11 17:21:03 +01:00
Souler
2d8a6fdf15 Scripts/Quests: An Apexis Relic, The Relic's Emanation and Guardian of the Monument. 2012-01-06 01:19:07 +01:00
kiper
8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
Spp
3792b470e0 Core/Scripts: Replace rand with urand in most cases (using regexp)
Used: perl -pi -e 's/([0-9]+) \+ rand\(\)\%([0-9]+)/"urand(".$1.", ".($1+$2).")"/ge'
2011-12-28 10:51:16 +01:00
Discover-
9b8d18e7cd Scripts/Quests: Add a double check in summoning for two of my previous scripts, as well as revert changing WDB data. 2011-12-25 17:17:28 +01:00
Discover-
dbcccbbb44 Core/Quests: Add script for quest The Thunderspike.
Closes #4458.
2011-12-25 16:44:55 +01:00
Discover-
275aa8a7d8 DB/Miscellaneous: Implement humans transforming into worgens at night inside Pyrewood Village.
And yet again some silly typo's, sorry guys.

Closes #3062
2011-12-25 01:21:09 +01:00
Discover-
49e10f992a Scripts/Quests: Zuhuled the Wacked
And obviously, some typo's.

Closes #3704
2011-12-25 00:52:01 +01:00
Discover-
c3e527da6d Core/Quests: Script quest Captain Tyralius.
Closes #3091.
2011-12-25 00:36:17 +01:00
Spp
d59c5e627f Fix warnings 2011-12-15 11:12:15 +01:00
Aokromes
d95a0aee76 Add missing %s to 2 emotes. 2011-12-09 20:54:20 +01:00
Shauren
358b33239a Core: Fixed remaining C6246: Local declaration of 'x' hides declaration of the same name in outer scope. from previous commit 2011-11-23 19:17:33 +01:00
Shauren
638693e78f Core: Fixed more warnings (C6246: Local declaration of 'x' hides declaration of the same name in outer scope.) 2011-11-23 17:55:16 +01:00
Bootz
d1334624da Core: Codestyle clean-up
"pl"->"player"

 Note: codestyle methods needs maintained, Player* player.
still to do properly clean-up chat.cpp.
2011-11-07 11:18:00 -06:00
Discover-
80720358f0 Scripts/Nagrand: Fix creature text of Maghar Prisoner and remove useless RAND() in go_warmaul_prison. 2011-10-25 23:52:55 +01:00
Discover-
fe3f19148a DB/SAI: Convert quests Survey the Land & Illidan's Pupil from core scripts to SAI (and fix them properly)
Closes #3060
2011-10-23 11:10:58 +01:00
Nay
8e2440133e DB/SAI: Convert quests 10987, 10107, 10108, 9918, 9849 from core scripts to SAI
Closes #1544
Closes #3055
Closes #3056
Closes #3058
Closes #3059
2011-10-23 11:00:56 +01:00
Discover-
fc174912f4 DB/Conditions: Fix quest Returning the Favor
Closes #3035

Also fix build (not enough Ctrl+S)
2011-10-22 17:48:09 +01:00
Nay
26b3e62b26 Scripts/Nagrand: Add a quest incomplete check in go_warmaul_prison (previous commit).
Thanks @Retriman
2011-10-22 17:38:26 +01:00
Discover-
8cc6750388 Scripts/Nagrand: Fix quest Finding The Survivors
Closes #442
Closes #3033
2011-10-22 17:33:12 +01:00
Discover-
6e1107f5fc Scripts/Nagrand: Fix quest Totem of Kar'dash
Closes #3032
2011-10-22 17:30:53 +01:00
Fredi Machado
97142102e0 Core/Misc: Added 'f' after float values 2011-10-17 07:38:27 -03:00