AI Accuracy Wac Script

View previous topic View next topic Go down

AI Accuracy Wac Script

Post  Admin on Wed Jul 13, 2011 9:04 am

The AI Accuracy Wac Script produces the difficulty for the map's AI characters. It increases as more human players enter the map. If the players leave the map, the value will be updated (do not use the word "never") so that "then" will always update the value of the number of players in real time.

RickmanBR of DFReload.com has a good setup. He says an accuracy spread of 10 is easy and an accuracy spread of 1 is very hard:

if elapse(1) then
if (humans == 1) then
accuracyspread = 10
elseif (humans == 2) then
accuracyspread = 9
elseif (humans == 3) then
accuracyspread = 8
elseif (humans == 4) then
accuracyspread = 7
elseif (humans == 5) then
accuracyspread = 6
elseif (humans == 6) then
accuracyspread = 5
elseif (humans == 7) then
accuracyspread = 4
elseif (humans == 8) then
accuracyspread = 3
elseif (humans == 9) then
accuracyspread = 2
elseif (humans >= 10) then
accuracyspread = 1
endif

OR

if (humans == 2) then
accuracyspread = 10
elseif (humans == 3) or (humans == 4) then
accuracyspread = 8
elseif (humans == 5) or (humans == 6) then
accuracyspread = 6
elseif (humans == 7) or (humans == 8) then
accuracyspread = 4
elseif (humans == 9) or (humans == 10) then
accuracyspread = 2
elseif (humans >= 11) then
accuracyspread = 1
endif

The above are examples. You just modify or regulate the difficulty as you want. Here's one that I use in my Joint Ops AW2 and DFX2 Black Ops maps:

//Incremental accuracy spread difficulty

if (humans == 1) then
accuracyspread = 14
elseif
(humans == 2) then
accuracyspread = 9
elseif
(humans == 3) then
accuracyspread = 9
elseif
(humans == 4) then
accuracyspread = 8
elseif
(humans == 5) then
accuracyspread = 7
elseif
(humans == 6) then
accuracyspread = 6
elseif
(humans == 7) then
accuracyspread = 5
elseif
(humans == 8) then
accuracyspread = 3
elseif
(humans > 8) then
accuracyspread = 2
endif

As you can see, I have a different scale or measurement for the level difficulty. I have made mine considering 14 as the easiest.
avatar
Admin
Admin

Posts : 31
Join date : 2010-03-31

View user profile http://mmgaming.forumotions.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum