aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
AgeCommit message (Collapse)Author
2024-09-10Reorder code of `_gamestate_mp.nut` (#875)William Miller
Reorder functions to prepare for refactor and add big ASCII text comments for wayfinding using common IDE minimap
2024-09-10Fix crash when player is in a special team (#866)LightBlueCube
on player team switch. Adds a check whether player is in a default team (IMC/Milita) before calling `GetOtherTeam()`
2024-09-07Refactor and improve spawns (#829)v1.28.0-rc2William Miller
Overhauls the spawning logic to primarily use native functions and with Squirrel only doing refining on the selected spawns.
2024-09-03Prevent rare crash when player disconnects during War Games intro (#856)v1.27.7-rc3v1.27.7LightBlueCube
2024-07-17Fix "Kills by Auto-Titan" not registering at all (#817)William Miller
This is a quick fix that will redirect the attacker entity to a proper NPC owned by the player. By default behavior of the game, attackers are always the final entity in the owning hiearchy, which is always a player if owned NPCs kills enemies. This change properly redirects the code to the correct NPC whenever they have an owning player.
2024-07-12Change `IsValid()` check to `EndSignal()` (#820)v1.26.3-rc3v1.26.3William Miller
2024-07-11Check player validity in `SetupChallenges_Threaded` (#819)fvnkhead
2024-07-08Hotfix for Intro Dropship (#816)v1.26.3-rc2v1.26.2William Miller
to fix script error
2024-07-07Fix oversight in "Total MVP" not registering in regards to progression (#814)v1.26.1William Miller
The game have an extra stat especifically to count the total amount of times a player has been MVP in all matches, while the other mvp stat which i previously thought to be absolutely is only registered per map, not globally.
2024-07-07Prevent suicides registering progression stats (#813)William Miller
Prevent suicides registering stats
2024-07-07Mitigate muted audio during dropship intro (#812)v1.26.1-rc5GeckoEidechse
Co-authored-by: Zanieon <william-millennium@hotmail.com>
2024-07-07Mitigate muted audio during dropship intro (#811)GeckoEidechse
Co-authored-by: Zanieon <william-millennium@hotmail.com>
2024-07-07Play battle chatter during dropship intro (#810)GeckoEidechse
Co-authored-by: Zanieon <william-millennium@hotmail.com>
2024-07-07Fix formatting in dropship introZanieon
taken from #809
2024-07-07Rework Intro Dropship Script to avoid player overlap (#809)William Miller
This overhaul makes the Dropships behave consistently now like vanilla and players will only start overlapping each other when both Dropships are full, otherwise code will always attempt to populate them properly instead.
2024-07-06Unfuck the Spawns (#808)v1.26.1-rc4v1.26.1-rc3v1.26.1-rc2William Miller
1. Get rid of the odd logic of limiting the algorithm to 3 spawn points 2. Changes the specific CTF algorithm to calculate the spawn points from the flag bases themselves rather than the initial spawn points which was causing severe inconsistencies. 3. Remove some checks in regards to map side swapping when matches reaches half-times due to odd behaviour in native code 4. Mitigate usage of `GetOtherTeam` for certain checks since that function might return Unreachable when it's a gamemode with more than 2 Teams and intentionally script crash the server.
2024-06-28Implement Match Goals menu and XP tracking (#756)v1.26.0-rc4v1.26.0William Miller
for vanilla parity when it comes to the progression system. See PR description for full details
2024-04-13Move all owned NPCs together with player on Team Switching (#789)William Miller
Uses a call back that is triggered when the player switches team to update their own entities accordingly.
2024-03-26Fix weapon drop callback breaking SP (#797)v1.25.0-rc1Cyn
Move weapon drop callback globalization to `#if MP`
2024-02-29Add weapon dropped callbackv1.24.3-rc2v1.24.3-rc1NoCatt
Adds a callback for when a weapon is dropped. In the progress this also fixes weapons still dropping unintentionally in certain case.
2024-01-29Scale pilot kill core gain properly for mixed modes (#702)Jack
Closes #682
2024-01-02Fix spectating for LTS (#774)v1.21.3-rc1v1.21.3Aibek
Adds missing spectator initialisation Co-authored-by: Khalmee <87766895+Khalmee@users.noreply.github.com>
2024-01-02Add validity check to `HandleDistanceAndTimeStats_Threaded` to prevent crash ↵Casper Talvio
(#767)
2024-01-02Add validity check to `SaveStatsPeriodically_Threaded` (#769)Casper Talvio
2023-12-17Fix `spec_mode` bind not working (#706)Jack
Fixes `spec_mode` bind not working by adding a small spectator replay delay Co-authored-by: DBmaoha <56738369+DBmaoha@users.noreply.github.com>
2023-11-21Implement missing Score Events (#700)v1.20.1-rc5v1.20.1Jack
* use consts for killingspree and rampage score events * add Revenge and Quick Revenge score events * ensure no revenge/quick revenge against non-players * this is OnPlayerKilled i dont need this check * implement mayhem and onslaught
2023-11-05Re-implement projectile kill replays (#723)v1.20.0-rc2v1.20.0-rc1Jack
Adds a new callback: `SetCallback_TryUseProjectileReplay` so that servers can write logic to enable/disable this behaviour on a case by case basis
2023-11-03Fix wrong attacker receiving progression stat updates (#755)v1.19.11-rc7v1.19.11William Miller
Fixes wrong attacker receiving stat updates
2023-10-18Stop logging invalid map/mode exception in progression (#750)v1.19.9-rc3v1.19.9Jack
Some game modes like Gun Game or Infection are not considered valid yet, causing the warning message to be spammed in the logs. Necessary work should be done to add the modes to the list of valid modes. Until we will just comment out the print statement in order to prevent log spam. Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
2023-10-18Fix Titan Assist not tracking properly (#744)William Miller
Titan Assist medals aren't given to players who assisted damage when someone kills a titan, that is due the fact that Titans stores damage history in their Soul component, not the NPC itself.
2023-10-17Award titan assist stats based on titan soul damage history (#746)Jack
Titans stores damage history in their Soul component, not the NPC itself, probably due to how game handles pilot/auto-titan interaction with the Titan entities. This means that we weren't awarding assist stats properly for titan assists
2023-10-16Make dropships immune to Titan step damage (#737)v1.19.9-rc1Jack
Currently dropships take damage from titans stepping on them, this prevents that Co-authored-by: William Miller <william-millennium@hotmail.com>
2023-10-12Expose extra optional arg in `UpdatePlayerStat` function (#742)William Miller
Exposes the previously hidden string argument in the `UpdatePlayerStat` function, that is needed to track some things more easily when hooking stats.
2023-09-18Use `WinnerDetermined` instead of `Epilogue` to grant stats (#713)v1.19.0Jack
Use `WinnerDetermined` instead of `Epilogue` to grant stats as some modes (like LTS) don't go into `eGameState.Epilogue` apparently. `eGameState.WinnerDetermined` should be better
2023-09-02Progression system (#655)Jack
This also can't hurt right? --------- Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com>
2023-09-02Prefer not to spawn within 20 meters of enemy (#512)v1.18.3-rc1v1.18.3v1.18.2-rc1v1.18.2fvnkhead
It indeed can't hurt Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com>
2023-09-02Force player respawn to match vanilla (#554)Jack
Automatically respawns dead players after 5 seconds unless set otherwise
2023-07-10Fix dropship related crash (#662)EnderBoy9217
* Fix infinite loading screen * Update Northstar.Client/mod/scripts/vscripts/ui/_menus.nut * Update _menus.nut * Update _menus.nut * Update _menus.nut * Add files via upload * Update _menus.nut * Update _menus.nut * Update cplayer.nut * Update cplayer.nut * Add files via upload * Update _classic_mp_dropship_intro.gnut
2023-03-09Add support for entity final damage callbacks (#578)Dinorush
* Add support for entity final damage callbacks * Add final damage callback for non-Players/NPCs * Remove accidental duplicate code * Remove other unnecessary (duplicated) code * Implement uniboi suggestion
2023-01-13Fortwar fixes from #564 with my requested changes (#571)v1.12.1-rc1v1.12.1v1.12.0-rc5v1.12.0Maya
* Initial commit * add playlistvar "fw_harvester_regen_time" * adding friendly highlights * Scale Damage before shield Health but let other damage callbacks run * Make Gamemode 8v8 again * Fix NotifyEnterEnemyArea Callback Co-authored-by: DBmaoha <56738369+DBmaoha@users.noreply.github.com>
2023-01-06[GAMEMODE] Add gamemode_fw (#545)v1.12.0-rc2DBmaoha
* Initial commit Co-Authored-By: Ghroth-follower <45908037+Ghroth-follower@users.noreply.github.com> Co-Authored-By: zxcPandora <81985226+zxcPandora@users.noreply.github.com> * add customized scripts Co-Authored-By: Ghroth-follower <45908037+Ghroth-follower@users.noreply.github.com> Co-Authored-By: zxcPandora <81985226+zxcPandora@users.noreply.github.com> * add royal as co-worker Co-Authored-By: Maya <11448698+RoyalBlue1@users.noreply.github.com> * reset harvester.gnut * Update _gamemode_fw.nut * no need to update alertLevel right after clear * hacked natural turret receives less health * change consts name * update HACK_ForceDestroyNPCs() * update battery port's usePrompts * batteryPort useHint update * should do a check for titans * disable cloak while applying battery * add debounce for turret notifications * fix escalate * fix complex crash * late spawn camp trackers * defensive fix after havester destroyed * nerf salvo core and titan's earn meter * edit rodeo_titan in Northstar.Custom * make settings controllable by playlistvars * use tabs for indenting use tabs for indenting * Move game mode specific behaviour to callback use post damage callback * Move FW specific code out of _battery_port.gnut Also Split Damage Callbacks to onDamage and onPostDamage * Fix globalizing same function twice * Adding vars back to HarvesterStruct * use tabs for indenting use tabs for indenting Co-authored-by: Ghroth-follower <45908037+Ghroth-follower@users.noreply.github.com> Co-authored-by: zxcPandora <81985226+zxcPandora@users.noreply.github.com> Co-authored-by: Maya <11448698+RoyalBlue1@users.noreply.github.com> Co-authored-by: zxcPandora <1158500986@qq.com>
2022-10-31Better Decloaking Check to Support Modding (#514)DBmaoha
* Better Decloaking Check to Support Modding Respawn hardcoded decloaking which messed up many things, this will make vanilla cloak to behave properly in any offhand slot and have a better support for modded cloak * commit fix
2022-10-21Added Music and Dialogue Event (#469)DBmaoha
* Added Music and Dialogue Event Added Music based on score event and time. Added Dialogue event based on score comparation and after killing a player's titan * Changed Filter Type to Only DM Gamemodes Only vanilla gamemodes those have unlimited respawns will automatically plays music * Added a ! omg * Removed Music Event Removed Music Event, Moved Dialogue Event to _gamestate_mp.nut * Changed mods.json * Changed RoundBased Gamemodes Check not hardcoded right now * Moved Killing Titan Dialogue to _score.nut dialogue is now together with scoreevent
2022-10-21Added Callsign Event for Core Earned And Titan Kill (#495)DBmaoha
* Added Callsign Event to Core Earned and Titan Kill Callsign event from vanilla * No Associate Entity for NPC Titan Kill * Added Check to Player Titans
2022-10-21allow server scripts to compile with -dev or developer 1 (#492)BobTheBob
2022-10-21Fixed SuddenDeath Based Modes Stuck (#496)DBmaoha
* Fixed SuddenDeath Based Modes Stuck Added checks so sudden death based gamemodes won't stuck if there ain't any players in server * Make scripts able to run
2022-10-08Fix crash when final killcam entity becomes invalid (#516)Dinorush
2022-08-27Add alive checks (#491)GeckoEidechse
hotfixes respawn crash exploit Co-authored-by: ScureX <multiaccshop@web.de>
2022-08-11adding win achievement (#481)cat_or_not
2022-08-07fix DelayedGamemodeAnnouncement (#471)cat_or_not