Go Back   Novahq.net Forum > Games > Delta Force
FAQ Community Calendar Today's Posts Search

Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-11-2016, 04:19 AM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

SP & COOP in the same map

One way for SP & COOP to work in the same map is to determine the number of human players present with WAC script as follows

Example Extract:
if (humans == 1)
then set(v1,1)
endif

if (humans == 2)
then set(v1,2)
endif

if (humans == 3)
then set(v1,3)
endif

if (humans == 4)
then set(v1,4)
endif

if (humans == 5)
then set(v1,5)
endif

if (humans >= 6)
then set(v1,6)
endif

You can use elseif if you wish.

Other uses:


;COMPARE
;eq(#,#) true if #==#
;ne(#,#) true if #!=#
;lt(#,#) true if #<#
;gt(#,#) true if #>#
;le(#,#) true if #<=#
;ge(#,#) true if #>=#
;true(#) true if #!=0
;false(#) true if #==0

;MODIFY
;set(var,#) set var to #
;add(var,#) add # to var
;sub(var,#) subtract # from var, clamp at 0
;inc(var) add 1 to var
;dec(var) subtract 1 from var, clamp at 0
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:49 AM.




Powered by vBulletin®