Go Back   Novahq.net Forum > Games > Delta Force

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 12-22-2016, 10:57 PM
Paradise067
Unregistered

Posts: n/a

Thanks!
Reply With Quote
  #3  
Old 02-07-2017, 08:47 AM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Quote:
Originally Posted by Paradise067 View Post
Thanks!
You're welcome... Paradise067

If you make something - please upload it here...
Reply With Quote
Reply


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

Advanced Search
Display Modes

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 01:35 PM.




Powered by vBulletin®