diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-07-21 15:23:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 16:23:29 +0200 |
commit | c698f0a496793058e450cbfa72c3b939a6f4b1cc (patch) | |
tree | f6e1a7e60c28204882041abd966854c744e968a3 /Northstar.CustomServers | |
parent | 3e72be3a9e6ef9a37981ea501684c9c1651f6b78 (diff) | |
download | NorthstarMods-c698f0a496793058e450cbfa72c3b939a6f4b1cc.tar.gz NorthstarMods-c698f0a496793058e450cbfa72c3b939a6f4b1cc.zip |
replaced shield captains with "shield captains" to match vanilla (#442)
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_spawn.gnut | 6 | ||||
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut | 39 |
2 files changed, 18 insertions, 27 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_spawn.gnut b/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_spawn.gnut index 26ddf3ca..8599f429 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_spawn.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_spawn.gnut @@ -26,7 +26,6 @@ global function CreateRocketDroneGrunt global function CreateShieldDrone global function CreateShieldDroneGrunt global function CreateSoldier -global function CreateShieldCaptain global function CreateSpectre global function CreateStalker global function CreateStryder @@ -277,11 +276,6 @@ entity function CreateSoldier( int team, vector origin, vector angles ) return CreateNPC( "npc_soldier", team, origin, angles ) } -entity function CreateShieldCaptain( int team, vector origin, vector angles ) -{ - return CreateNPCFromAISettings( "npc_soldier_shield_captain", team, origin, angles ) // idek -} - entity function CreateProwler( int team, vector origin, vector angles ) { return CreateNPC( "npc_prowler", team, origin, angles ) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut index 4ebbcf61..e15fbfb6 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut @@ -730,49 +730,46 @@ void function spawnSuperSpectreWithMinion(SmokeEvent smokeEvent,SpawnEvent spawn } -void function spawnDroppodGrunts(SmokeEvent smokeEvent,SpawnEvent spawnEvent,FlowControlEvent flowControlEvent,SoundEvent soundEvent) +void function spawnDroppodGrunts( SmokeEvent smokeEvent, SpawnEvent spawnEvent, FlowControlEvent flowControlEvent, SoundEvent soundEvent ) { - PingMinimap(spawnEvent.origin.x, spawnEvent.origin.y, 4, 600, 150, 0) + PingMinimap( spawnEvent.origin.x, spawnEvent.origin.y, 4, 600, 150, 0 ) entity pod = CreateDropPod( spawnEvent.origin, <0,0,0> ) SetTeam( pod, TEAM_IMC ) InitFireteamDropPod( pod ) - waitthread LaunchAnimDropPod( pod, "pod_testpath", spawnEvent.origin, <0,0,0> ) + waitthread LaunchAnimDropPod( pod, "pod_testpath", spawnEvent.origin, < 0, 0, 0 > ) string squadName = MakeSquadName( TEAM_IMC, UniqueString( "ZiplineTable" ) ) array<entity> guys - bool adychecked = false for ( int i = 0; i < spawnEvent.spawnAmount; i++ ) { - entity guy - - // should this grunt be a shield captain? - if (i < GetCurrentPlaylistVarInt("fd_grunt_shield_captains", 0)) - guy = CreateShieldCaptain( TEAM_IMC, spawnEvent.origin,<0,0,0> ) - else - guy = CreateSoldier( TEAM_IMC, spawnEvent.origin,<0,0,0> ) - + entity guy = CreateSoldier( TEAM_IMC, spawnEvent.origin,<0,0,0> ) - if(spawnEvent.entityGlobalKey!="") - GlobalEventEntitys[spawnEvent.entityGlobalKey+i.tostring()] <- guy + if( spawnEvent.entityGlobalKey!="" ) + GlobalEventEntitys[ spawnEvent.entityGlobalKey + i.tostring() ] <- guy SetTeam( guy, TEAM_IMC ) guy.EnableNPCFlag( NPC_ALLOW_INVESTIGATE | NPC_ALLOW_HAND_SIGNALS | NPC_ALLOW_FLEE ) - guy.DisableNPCFlag( NPC_ALLOW_PATROL) + guy.DisableNPCFlag( NPC_ALLOW_PATROL ) DispatchSpawn( guy ) + // should this grunt be a shield captain? + if (i < GetCurrentPlaylistVarInt( "fd_grunt_shield_captains", 0 ) ) + thread ActivatePersonalShield( guy ) + guy.SetParent( pod, "ATTACH", true ) SetSquad( guy, squadName ) // should this grunt have an anti titan weapon instead of its normal weapon? - if (i < GetCurrentPlaylistVarInt("fd_grunt_at_weapon_users", 0)) + if ( i < GetCurrentPlaylistVarInt( "fd_grunt_at_weapon_users", 0 ) ) { - guy.TakeActiveWeapon() - guy.GiveWeapon("mp_weapon_defender") // do grunts ever get a different anti titan weapon? + guy.GiveWeapon( "mp_weapon_defender" ) // do grunts ever get a different anti titan weapon? - yes, TODO + // atm they arent using their AT weapons ever, but they do in fact get them, in fact some grunts are getting 2 since they already get a rocket_launcher + // this seems to be a problem elsewhere as opposed to something that is wrong here } - SetTargetName( guy, GetTargetNameForID(eFD_AITypeIDs.GRUNT)) - AddMinimapForHumans(guy) - spawnedNPCs.append(guy) + SetTargetName( guy, GetTargetNameForID( eFD_AITypeIDs.GRUNT ) ) // do shield captains get their own target name in vanilla? + AddMinimapForHumans( guy ) + spawnedNPCs.append( guy ) guys.append( guy ) } |