Commit Graph

228 Commits

Author SHA1 Message Date
David Markowitz
8cdb388915
Optimize scripts for faster compilation (#597)
* Implement Precompiled Headers

* First volume of optimizations

* Scripts A-B

Gonna be doing this in alphabetical order now.

* C Scripts and remove unneeded includes from base cppscripts header

Remove the MissionComponent and Loot includes from all base scripts and place their needed includes in the respective scripts.

* D scripts

* F scripts

* F scripts 2

Finish up removing extraneous includes from scripts that start with the letter F

* G scripts

Removing extraneous includes from scripts that start with the letter G

* I scripts

Removing extraneous includes from scripts that start with the letter I

* M-Z scripts

Removing extraneous includes from scripts that start with the letter M-Z

* Revert "Implement Precompiled Headers"

This reverts commit d79d8d4991.

* Revert "Revert "Implement Precompiled Headers""

This reverts commit 0597faf308.

* Add back in PCH

Add back in PCH

* Fix CMake

Whitespace

Remove duplicate file glob

Remove newline
2022-07-04 23:00:10 -07:00
Aaron Kimbrell
1497d9b35a
breakout possessor from char comp (#606)
* breakout possessor from char comp
Use the correct component for possessor
cleanup scirps that were using possessor improperly
beginnings of mounts

* fix comments
added bounds check
2022-06-29 18:50:24 -05:00
David Markowitz
a55162775e
Address incorrect stun played by growl speakers (#605)
Add the FireFirstSkillonStartup script to allow for scripts that use this to function.

Add comments

Fix QB Stunner scripts

Use SetVar for variable

Remember that variables for scripts need to be stored in the entity since a script can be used across multiple entities.

Remove unused variable

Specify Unsigned Int

Start skill asap, not next tick
2022-06-28 23:17:45 -07:00
David Markowitz
670a2de95b
Address issue with Inventor Beehive and Buccaneer Monkey ability on valiant weapon (#604)
* Add Script

Add the FireFirstSkillonStartup script to allow for scripts that use this to function.

* Add comments
2022-06-27 21:36:18 -07:00
Aaron Kimbrell
94e161df55
Address players leaving Battle of Nimbus Station causing a crash that wont save (#600) 2022-06-24 15:26:09 -05:00
EmosewaMC
6b30292efd Fix issue with dropship computer
The dropship computer now no longer gives a player a second mission item should they interact with it again after mission completion
2022-06-20 22:22:32 -07:00
EmosewaMC
968114199b The shooting Gallery now properly ends when a player leaves the instance
The shooting Gallery now properly ends when a player leaves the instance

Frakjaw player update

Update the Frakjaw battle instance script to remove players when they leave the instance

Simplify comparison

Simplify comparison for entity pointer to be implicit
2022-06-19 01:40:16 -07:00
Jett
842cb80137
Revert "Don't give activity loot for Battle of Nimbus Station" 2022-06-13 04:19:27 +01:00
EmosewaMC
ef8ea13d99 Don't give activity loot for Battle of Nimbus Station
Address an issue on Brick Mesa where Battle of Nimbus Station was dropping activity loot.  Tested completing Battle of Nimbus Station and ending early and was not given loot as is expected.
2022-06-12 19:25:28 -07:00
EmosewaMC
33cc3a3dd9 Corrected string to long conversion
For Windows, the definition for a long is 32 bits, not 64 bits like on other operating systems.  This caused an issue on Windows only where a number larger than 32 bits was attempted to be converted to a long, the WorldServer would crash.  This commit replaces all instances of `stol` with `stoull` to further define a long and reduce ambiguity of number length.
2022-06-05 21:02:41 -07:00
Aaron Kimbrell
66215da37a
Fix overrides in ActMine (#568) 2022-05-31 00:24:55 -05:00
Aaron Kimbre
729e79eadb resolves #556 2022-05-17 19:12:43 -05:00
Aaron Kimbre
aba349301f Add AM Teapot server
Resolves #224
2022-05-09 23:21:20 -05:00
Aaron Kimbre
bd3e8aee51 Implement Rocket Launch Lup Component 2022-05-03 15:05:29 -05:00
Aaron Kimbre
763a1f4a61 Split out Darkitect reveal into it's own file
add reveal to Fong
2022-05-01 08:54:45 -05:00
EmosewaMC
2435870ec5 Added animation
Added the GM animation and stun for the Nexus Tower Paradox Panels for mission 1281.  Tested on local instance and animation played correctly when having the mission and did not play at all before or after completing the mission
2022-04-28 19:52:03 -07:00
EmosewaMC
2f598dad09 Serialize ape when changing armor value 2022-04-28 00:14:06 -07:00
EmosewaMC
27edf5da1d Typo in NsConcertInstruments 2022-04-25 18:16:47 -07:00
EmosewaMC
4fd1467cbf changed loot sources to none
Changed loot sources for some scripts to none so they properly give loot to the player.
2022-04-24 18:40:20 -07:00
EmosewaMC
7a051afd97 loot source for item drops
Added support for Items to have a loot source attached to them when dropped or rolled.  This fixes the issue where achievements would give the item before it appeared in the achievement window.
2022-04-23 20:35:34 -07:00
EmosewaMC
a4d934913c added lootsource send in GM
WIP commit
2022-04-23 05:13:06 -07:00
Aaron Kimbre
8db7dfef75 also apply overrides to AG fans 2022-04-18 21:09:27 -05:00
Aaron Kimbre
f3dd71ccb1 cleanup logs, fix overrides, define LOTs in header 2022-04-18 21:02:04 -05:00
Aaron Kimbre
8fe5c00984 remove dereference
(I think that's what it is called)
2022-04-18 08:36:11 -05:00
Aaron Kimbre
d05601ce64 Fixes 2022-04-18 08:27:37 -05:00
Aaron Kimbre
2122448284 cleaning up some stuff 2022-04-17 21:30:25 -05:00
Aaron Kimbre
263eaf03b0 ugh, another semicolon 2022-04-17 20:24:49 -05:00
Aaron Kimbre
6cef7a437a scope 2022-04-17 20:24:19 -05:00
Aaron Kimbre
0778b4f81c missed semicolon 2022-04-17 20:17:36 -05:00
Aaron Kimbre
235934714f honor the logic in the lua script 2022-04-17 20:16:27 -05:00
Aaron Kimbre
a343ed9493 rock hydrants work 2022-04-17 19:43:17 -05:00
Aaron Kimbre
cc68b0768b remove log 2022-04-17 17:43:25 -05:00
Aaron Kimbre
e696d26941 update the Effect ID 2022-04-17 17:41:10 -05:00
Aaron Kimbre
a8fcb4c153 make the hydrant match the lua script 2022-04-17 16:44:46 -05:00
Aaron Kimbre
1e85ae2035 tabs and log 2022-04-17 15:58:26 -05:00
Aaron Kimbre
67615d5688 fix volumen physics name 2022-04-17 12:46:41 -05:00
Aaron Kimbre
23677b4bd3 Simplify some stuff
Remove render component in startup
2022-04-17 12:38:12 -05:00
Aaron Kimbre
5b0f917485 update script path for fans 2022-04-17 00:05:04 -05:00
Aaron Kimbre
b3695c42b2 fix copy past error 2022-04-16 23:35:22 -05:00
Aaron Kimbre
0e5a1c9721 fix comparator 2022-04-16 23:33:44 -05:00
Aaron Kimbre
b4acf329b4 implement some missing scripts 2022-04-16 23:32:15 -05:00
EmosewaMC
9d79fc3d2e resolved MacOS compilation warnings 2022-04-05 05:11:06 -07:00
EmosewaMC
041dc8256f comment 2022-03-30 18:34:26 -07:00
EmosewaMC
b79ebf1d40 Corrected faction for Buff Station 2022-03-30 18:25:32 -07:00
Jett
ff9d736073
Merge pull request #442 from EmosewaMC/AvantGardensSurvivalBuffStation
Fully implemented Avant Gardens Survival Buff Station
2022-03-30 22:22:50 +01:00
Jett
b2890262fb
Merge pull request #445 from EmosewaMC/explodingDummyFix
Implemented script for exploding dummy in Nexus Tower Combat Training
2022-03-30 22:21:30 +01:00
Jett
0a6b8f139e
Merge pull request #437 from EmosewaMC/racingSpecificSmashFix
Addressed specific race smash missions not progressing
2022-03-30 22:20:38 +01:00
Jett
2a2fa94b03
Merge pull request #475 from EmosewaMC/ape-fixes
Addressed incorrect ape attacks
2022-03-30 22:18:57 +01:00
Jett
58c6429209
Merge pull request #393 from EmosewaMC/DragonQBFix
Implemented a script that spawns a Golem Quick Build on Crux Prime dragons when they reach zero armor
2022-03-30 22:18:44 +01:00
Jett
3a959778fe
Merge pull request #451 from EmosewaMC/ShootingGalleryScoreFix
Shooting Gallery daily mission fix
2022-03-25 15:59:39 +00:00
EmosewaMC
f83ad8bbe4 fixed wrong stun removal
Apes no longer stack their attacks

Apes no longer stack their attacks and excess comments removed
2022-03-24 01:05:36 -07:00
EmosewaMC
6be274b259 fixed issue 2022-02-23 17:38:25 -08:00
EmosewaMC
55def02c8f Added script to CppScripts 2022-02-20 19:51:54 -08:00
EmosewaMC
6905120ac6 Added MailBoxServer files 2022-02-20 19:51:35 -08:00
EmosewaMC
a60738f78f cleaned up SGCannon 2022-02-09 16:42:31 -08:00
EmosewaMC
e397ed310e Updated script for teams
Updated script to drop buffing items for all members in a team.
2022-02-08 02:02:05 -08:00
EmosewaMC
1122f50c7c Changed time when buff station spawns 2022-02-08 01:55:25 -08:00
Marcono1234
d9874b452e
Fix Plunger Gun not being removed from inventory after mission (#444) 2022-02-07 21:45:56 +01:00
EmosewaMC
0253a1fcb4 Added script for exploding asset 2022-02-07 03:43:57 -08:00
EmosewaMC
a22e1bd53d Added new case in CppScripts 2022-02-07 03:43:57 -08:00
EmosewaMC
204f03fd2a removed extra function 2022-02-06 22:19:23 -08:00
EmosewaMC
b297d21a8d Fully implemented buff station script 2022-02-06 22:15:32 -08:00
EmosewaMC
f41e8292e8 Clarified numbers and added comments 2022-02-06 21:34:26 -08:00
EmosewaMC
3de2c3bfc6 set faction of buff station to 6 2022-02-06 21:32:36 -08:00
EmosewaMC
9cfb9a0de6 Added specific smashable mission progression 2022-02-06 14:28:37 -08:00
Nordegraf
f7009b499b
added tracking of Pet Excavator achievement (#213)
* added tracking of the Pet Excavator achievement

* make Pet Extractor Progress Zone specific

* added tracking of Pet Excavator Achievement using player flags
2022-02-05 13:19:25 +01:00
David Markowitz
84cf79906b
Frakjaw Battle instance fixes (#409)
* Update NjMonastryBossInstance.cpp

* Changed spawn position to be 1.

* Changed stored variable from vector to int

Added clarifying comments
2022-02-05 13:11:58 +01:00
David Markowitz
828c457614
Added script for Friend of the Ninja mission (#406)
* Added script for Friend of the Ninja mission

* Added comments
2022-02-05 13:00:10 +01:00
David Markowitz
fe178bf745
Fully Implemented Shooting Gallery Mission and Achievement Fixes (#381)
* Fixed tab indent

* Fully implemented Achievement tracking for Shooting Gallery

- Removed logging in MissionTask.cpp and moved the checks for mission progression to after checking the instance.

- Implemented the achievement tracking in SGCannon as well as tracking of the maximum hit streak and progression of enemy smashes in the shooting gallery.
2022-02-05 12:54:12 +01:00
David Markowitz
c6f220ee31
Implementing and Fixing All Racing Achievements (#366)
* Grammatical changes in comments

* Grammatical fixes in comments

Small grammatical fixes found in comments throughout the code.

* Added descriptions to functions

Added descriptions to functions that didn't have them to keep the code well documented

* Created RacingTaskParam.h

Created RacingTaskParam so eliminate magic numbers in the original implementation of completing racing missions.

* Updated magic numbers in Mission.cpp

Updated magic numbers in Mission.cpp to a meaningful name.

* Implemented racing smashable task progression

Previously, races did not progress tasks for smashing Entities.  Now all achievements tracking smashables track them correctly.  This has been implemented in the three Entities that can be smashed in a race (imagination boxes, track specific smashables, Forbidden Valley dragon eggs).

* Updated race imagination task progression

Race imagination now no longer uses a magic number when passed to missionComponent.  Instead we use a number defined in an enum located in RacingTaskParam.h

* Updated Race task checks

Racing tasks for completing races without smashing now no longer auto complete the whole chain of missions.  Tasks that track placing on tracks and races overall now properly complete.  Tasks that count how many missions in a zone are completed now function.  Tasks that track race completions in multiple areas now function.

* Updated RacingControlComponent.cpp

Fixed any tasks that required 3 players to now require 3 or more players in a race to progress.  This restriction is ignored if the world config opted in for solo racing to allow progression in solo worlds.  Updated magic numbers sent into missionComponent->Progress to an enum created in this PR.  Fixed some indentation.

* Fixed a grammatical error in variable name

Fixed a grammatical error in the enum for task params
2022-02-05 12:28:17 +01:00
wincent
dc2bd76aba Fixed scripted powerup spawners
When applied this commit fixes scripted powerups
2022-02-05 12:27:24 +01:00
David Markowitz
dac8ec621c
Added stun immunity for bosses in Battle of Nimbus Station (#428) 2022-02-01 17:48:23 +01:00
EmosewaMC
f605451693 Added pragma once to header file 2022-01-22 17:48:09 -08:00
EmosewaMC
fa747a27db Added missing script for Gate Crasher mission 2022-01-22 17:40:08 -08:00
Gie "Max" Vanommeslaeghe
02bf5937dc
Merge pull request #397 from EmosewaMC/AvantGardensSurvivalBuffStation
Fixed an issue where the Avant Gardens Survival buff station was not spawning and implemented its' script
2022-01-22 15:53:58 +01:00
EmosewaMC
20789bab7f Changed out Timer for CallBackTimer 2022-01-20 16:00:45 -08:00
Gie "Max" Vanommeslaeghe
e248b74ee6
Merge pull request #386 from EmosewaMC/passportflagnotbeingset
Added joined a faction flag
2022-01-20 15:15:50 +01:00
EmosewaMC
e11260a2fe Added comment 2022-01-20 03:54:58 -08:00
EmosewaMC
24f8ea21db Added redundancy for smashing buff station 2022-01-20 03:48:43 -08:00
EmosewaMC
6fc0683ce9 Added comments 2022-01-20 03:26:41 -08:00
EmosewaMC
15831e8d6c Added Script files for Avant Gardens Buff Station 2022-01-20 03:20:39 -08:00
EmosewaMC
2a5f3b8072 Added script for Avant Gardens Survival buff station 2022-01-20 03:20:24 -08:00
Gie "Max" Vanommeslaeghe
3bb1491f09
Merge pull request #387 from EmosewaMC/BonsRepeatMissionTriggers
Fixed Battle of Nimbus Station achievements being repeatable
2022-01-19 21:08:25 +01:00
EmosewaMC
46f375a58e Added comments to header file 2022-01-19 02:31:22 -08:00
EmosewaMC
097af41392 Deleted unused variables 2022-01-19 02:28:50 -08:00
EmosewaMC
67d5061416 Implemented Dragon Smash Quick Build for Crux Prime Dragons
Implemented a script for the crux prime dragons to spawn the Golem Quick Build that insta kills the Entity if the player hits the dragon after the golem is built.  Tested on Local Ubuntu instance against 1 Crux Prime Maelstrom Dragon and 1 Butterscorch and had no issues building the quick build or with the enemy not smashing.  Enemies also correctly reset to their default behavior after the stun period has expired.
2022-01-19 02:10:04 -08:00
EmosewaMC
01ed5106b9 Changed Script Created for Apes on Crux Prime 2022-01-18 02:28:17 -08:00
EmosewaMC
60ba78d639 Fixed BoNS achievements being repeatable 2022-01-17 21:55:01 -08:00
EmosewaMC
3ede7006f9 Added Joined a faction flag
Added logic to set the player flag for joining a faction.  Tested on Ubuntu and had zero issues.
2022-01-17 19:43:37 -08:00
EmosewaMC
d883536ebd Reverted change and simply lowered the spawn height to 8 2022-01-15 19:12:07 -08:00
EmosewaMC
fa714aa843 Changed Banana spawn Y height
Changed the Bananas Y spawn height to be 10 Y units lower to prevent bananas from getting stuck on the tree.
2022-01-15 17:55:44 -08:00
David Markowitz
70af1f9314
Fixed an issue where repeatable missions were not rewarding the items they should be rewarding (#357)
When applied this fixes issues with repeatable mission were not rewarding the correct items.
2022-01-14 14:00:09 +01:00
David Markowitz
24aaa04954
Fixed an issue with shark missions (#372)
Fixed an issue where getting eaten by a shark would accidentally progress the task for entering the Ravencloud gate's left hand side.
2022-01-14 13:48:33 +01:00
Jett
3eb319af5b
Merge pull request #370 from EmosewaMC/AdditionOfExtraMissionItem
Fixed a bug where Chaos Cleaner would accidentally add a Maelstrom Dagger to your inventory
2022-01-14 11:54:08 +00:00
Mick
470bc65239
Merge pull request #290 from Verathian/battle-of-nimbus-adjustments 2022-01-12 08:30:25 +01:00
EmosewaMC
304b03b1d1 Removed add item 2022-01-11 18:18:51 -08:00
Jett
b7b182c57c
Change the win delay to increase time to get BONS loot 2022-01-10 11:59:56 +00:00
Xiphoseer
f1525028da
Merge pull request #289 from Verathian/portal-fixes
Portal Stun Time Reductions
2022-01-04 07:31:35 +01:00
Jett
a15f9f38d8
Update script value to that in the lua file (#331) 2022-01-01 00:02:28 -08:00
Jett
7d40585211 Test frakjaw fix 2021-12-24 01:14:15 +00:00
Verathian
7b18c81608 BoNS Time Smash Fix 2021-12-22 00:20:53 -05:00
Verathian
eae1a38705 Portal Stun Time Reductions 2021-12-21 22:51:38 -05:00
Jett
0531365cb5
Make loot accurate to the loot drop rates during live. (#216)
* loot fix (broken)

* Fixed loot

* Update SlashCommandHandler.cpp

* Remove debug command

* Roll loot command

* Remove debug log

* Added const references
When this commit is applied it adds const references to the loot system avoid some unnecessary copies.

Co-authored-by: wincent <wincent.holm@gmail.com>
Co-authored-by: Avery <averysumner@gmail.com>
2021-12-20 02:25:45 -08:00
Wincent Holm
c8177563e9 Fix non-standard lambda.
When this commit is applied it fixes use of non-standard lambda.
2021-12-19 14:47:03 +01:00
Wincent Holm
46149b19f1
Merge pull request #254 from EmosewaMC/Crux-Prime-Enemy-Fix 2021-12-19 08:43:24 +01:00
EmosewaMC
35e8a374df Required script functions added
Re-added the required script functions.
2021-12-18 00:22:49 -08:00
EmosewaMC
88af3c7681 Change of reset use
Instead of doing a hard reset on the spawner, we simply do a SoftReset.  I also removed some dead code that was doing nothing.
2021-12-17 18:07:52 -08:00
EmosewaMC
8dd376ae1e Crux Prime named enemy fix
Fixed an issue where named enemies on crux prime would no longer spawn by un-commenting a line that was commented out.
2021-12-17 00:31:19 -08:00
Niklas Conen
2a00d50672 fixed formatting 2021-12-16 00:36:10 +01:00
Niklas Conen
b05c41fe8f added tracking of the It's Truly Random achievement 2021-12-16 00:30:46 +01:00
BuildTools
337383b6fd Changed Log statement to debug log 2021-12-15 14:44:10 -06:00
BuildTools
c4dd85be53 Added error log for die roll 2021-12-15 14:33:16 -06:00
BuildTools
de202ac6cc minor formatting fix 2021-12-15 13:27:57 -06:00
Christopher Kawell
34050f641d
Merge branch 'main' into die-roll-anims-ckawell 2021-12-15 13:27:11 -06:00
BuildTools
fb18225f46 Implemented die roll animations for the Lego Dice item 2021-12-15 13:23:49 -06:00
Mick
81d25dd574
Merge pull request #150 from OogwayUniverse/script_ignore 2021-12-13 15:44:35 +01:00
Mick
ff3e10d076
Merge pull request #177 from DarkflameUniverse/implement-buccanneer-valiant
Fix #164: Implement Buccaneer Valiant special ability
2021-12-13 14:31:36 +01:00
Niklas Conen
834b87f4b2 increased the exchange rate of the nimbus station console to 5 faction tokens for 25 maelstrom infected bricks 2021-12-12 03:45:25 +01:00
Jett
74742771c4 Added a LogDebug
- Added debug logging
- Created vLog, a root function for all log functions
- Placed failed to load script log under this new LogDebug function
- Updated included config functions
2021-12-11 12:29:34 +00:00
Mick Vermeulen
833ed8a40d Implement Buccaneer Valiant special ability
Adds the ability for the buccaneer valiant to spawn a ship that rams
enemies and smashes them. Next to a script that triggers the ship skill
a few other changes had to be made:
- Force movement behavior server side calculation and sync
- The ship has no physics volume so the FindValidTargets for behaviors
had to be altered to allow ControllablePhysics entities to find entities
within their area. The "target_self" AOE flag has been used to replicate
the old behavior.
2021-12-11 11:59:29 +01:00
Mick
82a1c8a765
Merge pull request #147 from Daystar1998/main
Fix spelling
2021-12-09 18:20:41 +01:00
Jett
bd609dfc90 Add ship shake to not log about being missing
This log was causing confusion and issues when in reality there was no problem present.
2021-12-09 13:09:12 +00:00
Matthew Day
50512cdef8 Fix spelling 2021-12-09 03:17:08 -06:00
Mick Vermeulen
f22bf24663 Update BaseEnemyMech script to change the default faction
As part of the base enemy mech script its faction should be updated to 4
to make sure it's seen as an enemy by the client. The AgDarklingMech script
has been deleted as its functionality was essentially that of BaseEnemyMech
and thus no longer necessary.
2021-12-08 20:00:08 +01:00
Avery
f68f683e22
Revert "separate AgSpaceStuff and AgShipShake" 2021-12-07 18:14:15 -08:00
red031000
002f3b6c0e
separate AgSpaceStuff and AgShipShake 2021-12-07 20:50:09 +00:00
Manas Shah
f760ef456c Small fixes for windows clang compile 2021-12-05 15:59:50 -08:00
Unknown
0545adfac3 Public release of the DLU server code!
Have fun!
2021-12-05 18:54:36 +01:00