aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
AgeCommit message (Collapse)Author
2024-11-04Replace uses of `disconnect` with `NSDisconnectPlayer` (#841)v1.28.4-rc3v1.28.4Jack
As we want to remove `FCVAR_SERVER_CAN_EXECUTE` flag from `disconnect`.
2024-10-30Fix Match Stats Tracking Improperly (#898)William Miller
Previously would incorrectly count each round in round based modes as individual games duplicating and stacking stats for those modes in the process. This commit changes where the hook happens. Ensures the stats will register only once and only when the match really ends, still disconsidering Epilogue state.
2024-10-10Delete `_spawnpoints.gnut` (#890)v1.28.4-rc1William Miller
Unused file, not loaded by Northstar.
2024-10-02Restore missing faction dialogue for Titan Meter buildup (#876)William Miller
Adds faction dialogue saying that Titan is soon ready as well as showing a message when Titan is ready to drop.
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-03Remove `SetShouldCreateMinimapSpawnZones()` from `_gamemode_ps.nut` (#861)William Miller
Function is not necessary anymore, the reworked spawning logic at #829 uses playlistvars to control spawnzones creation on minimap.
2024-09-03Prevent rare crash when player disconnects during War Games intro (#856)v1.27.7-rc3v1.27.7LightBlueCube
2024-09-03Complete overhaul for the CTF script (#830)v1.27.7-rc2William Miller
Refactors CTF script that was dearly needed for a while
2024-09-03Play effect on flag match over (#860)v1.27.7-rc1William Miller
Actually not even vanilla does this, but this is just a fancied effect for when the match is over, the flags simply vanish together with their bases. So this adds some effects on top of it to not look so bland.
2024-09-03Add `IsValidPlayer()` before flag return cleanup (#859)William Miller
Add validity check to player validity as the thread of that function might end on via OnDestroy signal by disconnection, and by that point, the player is no longer valid.
2024-09-03Avoid duplication of challenge award (#858)William Miller
2024-08-31Fix `PlayerInventory_TakeAllInventoryItems` not being threaded (#852)x3Karma
This needs to be threaded as there's a `waitthread` further below on that function, which will cause an error if not threaded.
2024-08-30Add is `IsValidPlayer()` check (#855)v1.27.6-rc2v1.27.6-rc1GeckoEidechse
to prevent potential script crash Co-authored-by: Zanieon <william-millennium@hotmail.com>
2024-08-30Add missing `IsValidPlayer()` check for CTF capture assists (#854)v1.27.5-rc2v1.27.5GeckoEidechse
Co-authored-by: Zanieon <william-millennium@hotmail.com>
2024-08-30Move CTF spawn point related functionsZanieon
as part of the refactoring effort in #830
2024-08-30Move `OnPlayerKilled` functionZanieon
as part of the refactoring effort in #830
2024-08-30Move `CTFInitPlayer` functionZanieon
as part of the refactoring effort in #830
2024-08-30Move `CaptureFlag` functionZanieon
as part of the refactoring effort in #830
2024-08-30Move some drop flag related functions to end of fileZanieon
in an effort to have all related functions close to each other Part of the refactor in #830
2024-08-30Move `SetFlagStateForTeam` to end of fileZanieon
in an effort to have all related functions close to each other
2024-08-30Add missing valid check for militia flag spawn (#853)GeckoEidechse
Co-authored-by: Zanieon <william-millennium@hotmail.com>
2024-08-19Fix Attrition SquadHandler crash (#839)v1.27.3-rc3v1.27.3-rc2Bobbyperson
Adds an `IsAlive()` check to temporarily handle a rare crash
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-04-12Validate selected Titan loadout index better (#762)Jack
Seemingly there are cases where mods can set an invalid Titan loadout index, which then causes the progression checks to attempt to set the player's Titan model to an invalid index. This commit adds a check to ensure that it is within the bounds of the titan loadout array.
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-26Unlock remaining DLC items while progression is enabled (#786)v1.22.2-rc2v1.22.2William Miller
As they cannot be unlocked by levelling up and some players may still want to use them while having progression enabled, we simply keep them unlocked when progression is enabled.
2024-01-26Change Aegis Reset Functionality to use titan chassis ref instead of raw ↵William Miller
index (#788) The previous index passed to the method did not correspond properly with the persistent data index. Instead pass their class reference and then use that to grab the correct index.
2024-01-21Prevent client side crash in MFD when marked target dies out of bounds. (#705)v1.22.2-rc1v1.22.1-rc4v1.22.1Jack
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-18Fix restricting Aegis Rank reset functionality to MP (#771)v1.21.1-rc1v1.21.1William Miller
Move compiler flag so that `RecalculateHighestTitanFDLevel` is MP only.
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>