Commit Graph
505 Commits
Author SHA1 Message Date
Ovahlord f5dd7cdb67 Core/GameObject: backported restock and despawn handlings for goobers and chest
*thx @Wyrserth
2020-01-08 00:36:51 +01:00
Aokromes d6d3f06f06 New year 2020-01-04 18:32:38 +01:00
Warpten c69627f4b4 Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT. (#23)
Original research by @xvwyh.
2020-01-04 15:05:22 +01:00
funjoker 6c56916b29 Misc: Update copyright information
Happy new year
2020-01-01 18:47:28 +01:00
Ovahlord 15f09fb82b Core/Misc: fixed warnings and building connection patcher with boost versions below 1.61 2019-11-06 00:51:04 +01:00
Ovahlord c68e39d074 Core/Transports: solved all remaining visual issues for transports 2019-10-05 03:46:31 +02:00
Treeston 90540d684b Core/Misc: Various dynspawn cleanup and refactors split off from pooling rewrite:
- Map::RemoveRespawnTime(SpawnObjectType, LowType, doRespawn) split into Map::Respawn and Map::RemoveRespawnTime, without the extra boolean
- Map::RemoveRespawnTime(RespawnInfo*) merged into Map::DeleteRespawnInfo(RespawnInfo*) and is now private
- Map::DeleteRespawnInfo(void) renamed to Map::UnloadAllRespawnInfos to properly describe what it does
- Map::ProcessRespawns now actually saves the delayed respawn time to DB if the respawn was delayed
- Map::AddRespawnInfo now takes const reference, and returns success as a boolean
- Map::AddRespawnInfo no longer offers an unused "replace" parameter
- Map::DeleteRespawnInfo no longer offers a variety of unused private overloads
- Map::SaveRespawnTime no longer offers a tantalizing writeDB parameter. Parameter is now called "startup" to properly describe what it does.
- Map::SaveRespawnInfoDB now takes RespawnInfo reference instead of all the various fields. Still public because compatibility mode. QQ.
- Map::GetWorldObjectBySpawnId sanitized
- Map::GetXRespawnTime methods sanitized to all go through Map::GetRespawnTime

----------

Core/DB: Unify `creature_respawn` and `gameobject_respawn` into a single `respawn` table
2019-08-18 12:47:10 +02:00
Treeston f9184f026b Entities/Unit: Nuke Map::ForceRespawn from orbit, with the following implications:
- .npc respawn no longer causes stupid things to happen (Fixes #23014)
- ::DeleteFromDB methods on Creature and GameObject rewritten to be as sensible as such a colossally stupid method can ever be. They're static now.
- .npc delete and .gobj delete ported to new argument handling, and rewritten as per above. They can no longer crash the server when used in instances, too. Yay for that.
- Adjusted various dusty cobwebbed hacks around the core (why does waypoint visualization use permanent spawns *shudder*) to still work too.
2019-08-18 12:12:09 +02:00
Shauren 0b8ab68eb3 Core/Map: Kill zoneId from RespawnInfo, all it did was significantly slow down startup to make one gm command faster 2019-08-18 11:51:09 +02:00
Ovahlord c074c3a9c6 Revert "Core/Misc: Replace time(NULL) with GameTime::GetGameTime()"
This reverts commit 5fe3a1f7f9.
2019-07-08 15:56:29 +02:00
Ovahlord 5fe3a1f7f9 Core/Misc: Replace time(NULL) with GameTime::GetGameTime()
(ported commit: 12701cb0c6c45eb105ad449eb9a56e76d84d691e)
2019-07-08 12:19:19 +02:00
Ovahlord b3686c8853 Core/Transports: optimized several places in transport code 2019-05-23 13:21:04 +02:00
Ovahlord e1a8c04df7 Core/GameObjects: goobers will no longer reset their go state when they have no lock id or a reset time 2019-05-20 11:50:03 +02:00
Ovahlord 1e3d9c5fff fixed build 2019-05-05 00:44:46 +02:00
Ovahlord 69907a6d6d * Core/Object: Range check vol. 2 (#23226) (ported commit: 78070163dc6b9bb34ab2d006e9cc218548e861b7)
* Core/Object: Fix all missing parts for #23062
2019-05-05 00:34:40 +02:00
Ovahlord e5d59d5f98 Core/Object: Range check (#23179) (ported commit: 32e1de39a26628dcb64bc21ad415afb2ad938925) 2019-04-26 18:41:31 +02:00
jackpoz 5ef08fa5e8 Core/GameObject: Code cleanup
(cherry picked from commit 16a154c4e87ff1ff89323a8960bf601e6c18589b)
2019-04-26 17:53:43 +02:00
Killyana b7f63b29a0 Core/GameObject: Remove summoned gobs properly from the map without effecting other cases
Ref https://github.com/TrinityCore/TrinityCore/commit/0e8e3828f48120629b642d0de1db704fd0bb86cb
Ref #23115

(cherry picked from commit 9db64666dc30b1f8cad904bf8aeea1c9daf41c95)

# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
2019-04-26 17:53:36 +02:00
Killyana 00a2de63ad Core/GameObject: Delete summoned gobs and DestroyForNearbyPlayers gobs spawned with negative spawn time once the gob is deactivated
(cherry picked from commit 0e8e3828f48120629b642d0de1db704fd0bb86cb)
2019-04-26 17:51:20 +02:00
Ovahlord f57a7a3356 Core/GameObject: Remove summoned game objects from the map after calling SetSpawnedByDefault(false) (ported commit: 5f04c829a861da7d5a4f0ac955d6c1fbcd917af9) 2019-03-18 14:27:21 +01:00
Ovahlord 1d469a3d80 Core/Objects: Update position data of gameobjects and creatures before setting their zone scripts. This fixes capture points not being assigned to their outdoor pvp zone 2019-01-26 16:23:43 +01:00
Ovahlord 7543c45c7c Core/Objects: ported and implement custom visibility range functionality for creatures and gameobjects. Gameobjects will now get their visbility range read from their template data while creatures can be modified at will. The initial visbility distance changes has been parsed from MoP difficulty data by Kilyana 2019-01-02 15:51:56 +01:00
Ovahlord 5229a734dd Core/Transports: ported transport refactoring
* this implements full support for stoppable transports as well as serverside transport position tracking
* fixed several vehicle related issues
* fixed gameobject passengers not being displayed as transport passengers
* pets, dynamic objects and other summons are not added as transport passengers and will now properly be displayed
Todo:
- Deeprun Tram visual issues needs to be resolved
- Lady Deathwhisper's elevator needs some additional research
2018-11-21 12:04:26 +01:00
Ovahlord 65a0dbadd3 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2018-09-03 07:14:17 +02:00
Treeston 9e2c08cd2c Core/GameObject: Add getter for current Quat rotation 2018-08-29 19:19:31 +02:00
Ovahlord 5e380763aa Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
# Conflicts:
#	src/server/game/DungeonFinding/LFGMgr.h
#	src/server/game/Maps/Map.h
#	src/server/scripts/EasternKingdoms/zone_arathi_highlands.cpp
2018-08-28 04:41:18 +02:00
PolarCookie 79bbe02e0c [3.3.5] Core/Loot/Gameobject: Tempspawned Gameobjects after looting (#22124)
* spell spawned chest non-despawn fix

* fix the consumed game objects
2018-08-22 18:42:47 +02:00
Ovahlord 072cc4d043 Core/SAI: added missing changes for SMART_ACTION_FORCE_DESPAWN that was causing broken despawn actions 2018-08-05 21:28:10 +02:00
Ovahlord a0e288e761 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2018-07-23 15:57:10 +02:00
Aokromes 965e27bf41 Core/GameObject: Fix an edge case where GOs might never respawn after being manually despawned. 2018-07-23 14:00:18 +02:00
Treeston f441d36d78 Misc: Pass std::chrono types by value everywhere. 2018-07-23 13:53:13 +02:00
Ovahlord 59d169e8e4 Merge branch 'dynamicSpawnMerge' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
# Conflicts:
#	src/server/game/Entities/Creature/Creature.cpp
#	src/server/game/Entities/Object/Object.cpp
#	src/server/game/Maps/Map.cpp
#	src/server/game/Maps/Map.h
2018-07-21 23:13:55 +02:00
Ovahlord b976bc1187 Core/Spawns: merged Dynamic Spawning 2018-07-21 20:44:41 +02:00
Ovahlord 46cad2a53c Core/Transports: fixed generic elevators such as in Orgrimmar
* fixed Lady Deathwhisper's Elevator
* use a better value for returning to stop frame 0
2018-06-23 17:53:56 +02:00
Ovahlord a92ea3129d Core/Loot: implement support for currency loot via loot_template entries
*removed archaeology currency loot hack and fixed a crash
2018-06-18 14:43:21 +02:00
Ovahlord 23c5687d5c Core/Transports: fixed a logic mistake regarding travel time calculation when returning to frame 0 2018-06-11 12:54:38 +02:00
Ovahlord a938aa208c Core/Transports:
* stoppable transports will now have a default stop frame starting at 0
* fixed stoppable transport movement visuals
* fixed travel time calculation for transports that return to stop frame 0
2018-06-11 12:01:20 +02:00
Ovahlord 95e10ea1b1 Core/GameObject: fixed interaction distance with questgiver and door gameobjects by using the scaling size of the gobject 2018-04-16 19:34:40 +02:00
Aokromes ca588b2e66 Core/Spells: Implemented personal summons
* By default determined by summon property flag SUMMON_PROP_FLAG_PERSONAL_SPAWN
2018-04-08 21:56:55 +02:00
ariel- 5ff847159c Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources 2018-03-28 04:41:59 -03:00
Ovahlord 89c6777803 * Core/Phasing: fixed gameobject floor detection
*merged a crash fix
2018-03-22 17:36:01 +01:00
Ovahlord e44bb5f387 Core/Entities: Phase Rework (main commit) 2018-03-08 22:58:50 +01:00
Ovalord 76ae611601 Core/Gameobjects: renamed UnkInt32 to RequiredLevel 2018-01-15 18:37:16 +01:00
Aokromes 4bd0525edd Update copyright note for 2018 2018-01-01 01:06:19 +01:00
Krudor c8aeadc949 Remove reportUse parameter on GameObjectAI::GossipHello and give it its own event.
Ported from 3.3.5
2017-12-10 13:59:13 +01:00
Erik Strandberg a3b16c040b Port https://github.com/TrinityCore/TrinityCore/commit/f913f3bb8977c127d200d5d4a608ab434b21bbcd 2017-12-10 00:37:21 +00:00
Aokromes 405445d564 rename files 2017-11-27 00:58:28 +01:00
Ovalord c868e10d9b Core/Skills: implement Archaeology 2017-11-09 03:58:28 +01:00
Aokromes 1a5c0f5c3b Core/Grids: Ported cmangos/mangos-wotlk@ea99457
(cherry picked from commit 9299e9b)
2017-06-19 20:20:26 +02:00
Aokromes 1c6021ba96 Core/AI: Factory functions cleanup
- Get rid of fugly void pointers
- Streamlined AI selection code, using Permissible as it should've been instead of harcoded checks on the selector code
- Moved IdleMovementGenerator singleton to factory code
2017-06-01 13:22:24 +02:00