Thread: [DFX] Wac limits? :( (DFX/JO)
View Single Post
  #20  
Old 05-28-2018, 04:26 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Here's a simple alternative - I made this while back for another map but the var numbers shouldn't matter and you can drop it straight in just change the group and add weather etc...

For difficulty the ai just alternates between 2 standards.

Code:
;by stompem 2017
;Respawn AI if they kill themselves.
;if past(1) and gt(v223,0) and groupdead(0) then
;	GroupSpawn 0,1
;endif
// Inits
if never() then
	set(v223, 10) ; win target
endif
// Player
if piskills(v220) then
	add(v220, 1)
	add(v225, 1)
if gt(v220, 1) then
	add(v221, 1)
	sub(v223, 1)
end
if gt(v223,0) and groupdead(0) then
	GroupSpawn 0,1
end
endif
// Display
if not eq(v223,0) and elapse(7) then
	text# "Player Score",v221
	text# "Enemy Score",v222
	text# "Enemy Left",v223
endif
// AI
if not ssnalive(10000) then
	add(v224, 1)
	set(v225, 1)
if eq(v222, 10) and never() then
	win (0)
end
else
	set(v224, 0)
endif
if eq(v224, 1) then
	add(v222, 1)
endif
if lt(v225, 2) then
	accuracyspread = 10
	Gsetaccuracy 0,50,85
	GroupAtt 0,16
endif
if gt(v225, 1) then
	accuracyspread = 5
	Gsetaccuracy 0,100,100
	GroupAtt 0,320
endif
if never() and eq(v223, 0) then
	text "   GAME OVER"
	text# "Final Score",v221
	text# "Enemy Score",v222
endif
if chain(7) and never() then
	win (1)
endif
Reply With Quote