aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut35
1 files changed, 23 insertions, 12 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut
index 067fc4e9a..9b2439277 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut
@@ -179,30 +179,39 @@ void function HardpointThink( HardpointStruct hardpoint )
foreach(entity p in hardpoint.imcCappers)
{
- if(p.IsTitan()){
- imcTitanCappers = imcTitanCappers + 1
- }
- else if(p.IsPlayer())
+ if(p.IsPlayer())
{
- imcPilotCappers = imcPilotCappers + 1
+ if(p.IsTitan())
+ {
+ imcTitanCappers = imcTitanCappers + 1
+ }
+ else
+ {
+ imcPilotCappers = imcPilotCappers + 1
+ }
}
+
}
//printt("Militia")
foreach(entity p in hardpoint.militiaCappers)
{
-
- if(p.IsTitan()){
-
- militiaTitanCappers = militiaTitanCappers + 1
- }
- else if(p.IsPlayer())
+ if(p.IsPlayer())
{
+ if(p.IsTitan())
+ {
+ militiaTitanCappers = militiaTitanCappers + 1
+ }
+ else
+ {
- militiaPilotCappers = militiaPilotCappers + 1
+ militiaPilotCappers = militiaPilotCappers + 1
+ }
}
+
+
}
int imcCappers
int militiaCappers
@@ -260,8 +269,10 @@ void function HardpointThink( HardpointStruct hardpoint )
case CAPTURE_POINT_STATE_UNASSIGNED:
SetHardpointCaptureProgress(hardpoint,max(0.0,GetHardpointCaptureProgress(hardpoint)-(deltaTime/CAPTURE_DURATION_CAPTURE)))
if(GetHardpointCaptureProgress(hardpoint)==0.0)
+ {
SetHardpointState(hardpoint,CAPTURE_POINT_STATE_UNASSIGNED)
SetHardpointCappingTeam(hardpoint,TEAM_UNASSIGNED)
+ }
break
case CAPTURE_POINT_STATE_CAPTURED:
SetHardpointCappingTeam(hardpoint,hardpointEnt.GetTeam())