View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:56 pm



Reply to topic  [ 7 posts ] 
 Fixing default AI mode in b24 multiplayer? 
Author Message
User avatar

Joined: Fri Apr 02, 2010 12:19 am
Posts: 8
Reply with quote
Post Fixing default AI mode in b24 multiplayer?
in b24 after exiting editing mode the actors for both teams are always set to brainhunt mode rather than sentry mode. is there a snippet or something i can change in the skirmish defense and brain vs brain scripts to fix this?


Tue Mar 22, 2011 7:34 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Fixing default AI mode in b24 multiplayer?
Well, this is hardcoded, but you could add the lines under the Create function for those scripts:
Code:
for actor in MovableMan.Actors do
    actor.AIMode = Actor.AIMODE_SENTRY;
end


Might get some freaky results though.


Tue Mar 22, 2011 7:01 pm
Profile
User avatar

Joined: Fri Apr 02, 2010 12:19 am
Posts: 8
Reply with quote
Post Re: Fixing default AI mode in b24 multiplayer?
already tried putting that in the update function. did nothing


Tue Mar 22, 2011 11:41 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Fixing default AI mode in b24 multiplayer?
Worked for me in Create after the editing mode code, but some scripted actors had issues with it.


Wed Mar 23, 2011 6:35 pm
Profile
User avatar

Joined: Fri Apr 02, 2010 12:19 am
Posts: 8
Reply with quote
Post Re: Fixing default AI mode in b24 multiplayer?
could you give an exact point cause that's not working for me


Thu Mar 24, 2011 4:46 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Fixing default AI mode in b24 multiplayer?
Wasn't it actor.AIMode = 1 for sentry?


Sat Mar 26, 2011 3:08 am
Profile
User avatar

Joined: Fri Apr 02, 2010 12:19 am
Posts: 8
Reply with quote
Post Re: Fixing default AI mode in b24 multiplayer?
yes but AIMODE_SENTRY is a constant for aimodes and is equal to 1 so it also works just as well


Sun Mar 27, 2011 12:15 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.386s | 13 Queries | GZIP : Off ]