Shauren
c385edb12d
Core/Scripts: Fixed ENSURE_AI assertion failures when used in Reset()/InitializeAI() hooks with hotswap
...
Updates #20727
2018-02-10 11:51:34 +01:00
Aokromes
4bd0525edd
Update copyright note for 2018
2018-01-01 01:06:19 +01:00
Aokromes
4b48d0dfdc
Core/Misc: minor typo and codestyle fixes
2017-12-14 13:41:06 +01:00
Aokromes
1a00fad992
Core/Scripts: Implemented OnlyOnceAreaTriggerScript
2017-12-11 16:15:22 +01:00
Erik Strandberg
a3b16c040b
Port f913f3bb89
2017-12-10 00:37:21 +00:00
Aokromes
b93430ee08
Misc: More cleanup
2017-11-25 02:25:18 +01:00
Aokromes
91affef0c6
Misc: Kill trailing white spaces
2017-11-25 01:36:21 +01:00
Aokromes
2fe2290bf7
Core/Scripting: remove long time dead code
2017-09-12 15:44:23 +02:00
Yehonal
a73a5942d4
Core/Scripts: FOR_SCRIPTS macro shouldn't return early ( #20187 )
...
FOR_SCRIPTS, insteadof FOR_SCRIPTS_RET, shouldn't return
otherwise methods such as void ScriptMgr::OnPlayerEnterMap(Map* map, Player* player) will end prematurely
2017-09-10 15:25:00 +02:00
Aokromes
974c646e9c
Core/Scripts: Implement generic script loaders (and script registry macros) to greatly reduce code duplication
2017-07-20 07:13:21 +02:00
Aokromes
461ba1cb56
Fix (C) for multiple files
2017-06-15 08:46:45 +02:00
Aokromes
5c4153ba98
Core/OutdoorPvP: refactor using Position and Quat to pack parameters
...
- Moved statics to cpp
- Save scriptids into an array
2017-06-12 17:40:47 +02:00
treeston
aef568cdd1
Fix an issue where CanSpawn would never get invoked on creatures without per-guid script.
2017-05-31 16:10:04 +02:00
Ryan
1442984686
Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
2017-05-28 19:10:00 +01:00
DoctorKraft
225b6ede81
Core/Hotswap: Fix Reload on Linux
...
* Closes #19465
2017-05-26 14:25:08 +02:00
Shauren
aa864d57f7
Core/Hotswap: Replace #ifdef conditions with comparisons of values defined in CompilerDefs.h
...
(cherry picked from commit 43510a258c )
2017-05-26 14:24:42 +02:00
Aokromes
f0e36b0863
Core/Defines: define faction templates and replace magic numbers from scripts
2017-05-23 14:37:54 +02:00
ariel-
b14b00da5c
Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts and hooks
2017-05-04 01:41:35 +01:00
Aokromes
bdac4421e2
Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60
2017-05-02 02:59:58 +02:00
ariel-
f3246f835c
Core/Scripts: remove OnDummyEffect hook/sOnDummyEffect ai hook
...
- Duplicated logic never used, sometimes only ScriptMgr version was called, sometimes only AI
- They only encourage bad scripting practices
- You can still use OnSpellHit or a SpellScript
2017-05-02 02:04:45 +02:00
Aokromes
df1730a734
Core/ScriptReloadMgr: Fixed scripts hot swapping on OS X
2017-04-01 07:20:43 +02:00
Aokromes
55914733a0
Core/Scripts: Add support for spawn specific C++ scripts
...
By Krudor.
2017-03-25 10:27:51 +01:00
Aokromes
e09c37334d
Reverting: Game/Scripting: Add OnGameEvent hook for game objects.
2017-02-19 09:09:43 +01:00
Aokromes
e956ea4e62
Game/Scripting: Add OnGameEvent hook for game objects.
...
Called when specific game event starts
2017-02-19 09:06:37 +01:00
Aokromes
bc19916d79
Sync with 3.3.5a
2017-02-10 06:45:33 +01:00
Kittnz
159709e0b0
Game/Scripting: Add OnPlayerRepop hook
...
Called when a player presses release when he died
2017-02-10 05:26:15 +01:00
ariel-
9aa3dd4881
Core/Scripts: fix dynamic build
2017-02-10 05:25:24 +01:00
sirikfoll
dea47762be
Core/Scripting: Fixed hotswap calling evade mode for dead creatures
2017-01-14 06:46:02 +01:00
Aokromes
719a317a67
Update copyright note for 2017
2017-01-02 07:26:38 +01:00
treeston
824db91cbe
Various: Fix coverity reported issues.
2016-10-05 07:59:14 +02:00
treeston
7eb89d3648
Core/Movement: Fix a DB spline chain overload I missed in 2170541
2016-09-21 05:26:27 +02:00
treeston
8a402b9f6b
Core/Unit: Standardize SetFacingTo and SetFacingToObject behavior while moving. Both now fail while moving unless arg2 bool is true
2016-09-20 20:28:45 +02:00
treeston
7e55e193e5
PCH build fix. Again.
...
(( Alright, you made me waste 20 minutes of my life on a full nonPCH rebuild of the core now. ))
(( I hope you're happy. ))
2016-09-20 18:37:20 +02:00
treeston
bf61a58cc2
Core/Movement: Add a convenience default ctor to SplineChainResumeInfo, and fix PCH build in some configurations (zzz why do we even keep Appveyor and Travis around).
2016-09-20 12:55:26 +02:00
treeston
c1cc7e0a36
Core/Movement: Add new SplineChainMovementGenerator that allows accurate replication of sniffed waypoints in static sequences, along with DB facilities that allow loading of waypoints from DB.
2016-09-20 12:54:54 +02:00
Naios
dcea4223dd
Core/Scripts: Fix a crash when adding/removing objects from the map while swapping
...
* Ref #17833
2016-09-15 17:08:30 +02:00
Rochet2
19ed813f6b
Core/Scripts: Enhance quest status hook by making it catch more status changes ( #17865 )
2016-09-10 14:25:57 +02:00
treeston
40d0fcfae6
Fine, this time I actually built it. Promise.
2016-09-09 20:00:53 +02:00
treeston
008bbdbc47
Build fix.
2016-09-09 20:00:40 +02:00
treeston
32de236865
Game/Scripting: Follow-up to b3d44d6. Fix script selection for creatures on difficulty > 0.
2016-09-09 20:00:30 +02:00
treeston
bb9b7582ee
Core/Maps: Add override to allow InstanceMap const* -> InstanceScript const*.
...
Also tighten const-ness on CanSpawn method of CreatureScript.
2016-09-09 19:59:50 +02:00
treeston
5bd9d82c9d
Creature/Scripting: Move CreatureAI::CanRespawn to CreatureScript::CanSpawn. Now also applies to initial spawn. Dynamic spawning prep.
2016-09-09 19:57:25 +02:00
Aokromes
0d829c7d2d
Core/Misc: Minimize differences between branches in WorldSession::Update
...
This commit removes OnUnknownPacketReceive script hook - it could never be fired anyway at that point
2016-08-31 08:15:01 +02:00
Aokromes
c9d63c3cb0
Core: Removed Whitespaces
2016-08-10 09:29:13 +02:00
Naios
efa3d00ebf
Core/Scripting: Fix acquiring of references between script swaps
...
* Delay unloading of shared libraries to the next update tick
to prevent crashes in the destructor of the last referenced
script instance.
* Closes #17557
2016-08-10 09:05:43 +02:00
Naios
4065ba87c6
Core/Scripting: Don't force event cancellation when swapping creatures.
...
* EventProcessor::KillAllEvents(force = false) should only be used
by the EventProcessor.
2016-08-10 09:04:38 +02:00
Naios
c4e7dcc04d
Core/Scripting: Kill pending unit events when swapping AI's
2016-08-10 08:58:56 +02:00
Naios
2ec212fdd1
Core/Scripting: Use the systems temporary path for caching shared libs
...
* Disables the shared library caching on platforms completely which
never block files on usage (like linux).
2016-08-10 08:57:12 +02:00
Naios
8289ed64d6
Core/Scripting: Add the info how much time the system took to reload
2016-08-10 08:56:11 +02:00
Naios
b7ca3ad47d
Core/Scripting: Improve the error message when the script reloader fails to create a cache entry
...
(cherry picked from commit 8fa52860ab )
2016-08-10 08:55:12 +02:00