aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
AgeCommit message (Collapse)Author
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>
2023-12-14Add Aegis Rank reset functionality command for Progression (#727)v1.21.0-rc1William Miller
Adds a console command to allow players to reset the Aegis Ranks of their Titans
2023-12-04Add a doc comment to `StringReplace` (#748)GeckoEidechse
This is an initial test to get formatting etc agreed upon to then build on this further
2023-12-01Fix crash when calling for invalid loadout index (#764)v1.20.3v1.20.2-rc1v1.20.2x3Karma
Requesting for invalid loadout index using SwapSecondaryAndWeapon3PersistentLoadoutData will cause a crash. This change just adds a check to reset the loadout index.
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-11-03Fix wrong Item Type for Titan Camos (#728)William Miller
Small fix which the wrong item type was being addressed to check for Titan Camos, allowing players to use any camo without fallback to default if they didn't own that item previously when enabling progression.