View topic - Universal way to detect comanders in all games[SOLVED]


All times are UTC + 1 hour


Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 15 Apr 2012, 18:22 

Joined: 30 Jul 2010, 19:40
Ok I m not lua coder nor I m into game developing, I m creating map and all I need to know if it is commander or not, before life was easy .isCommander and easy way to detect coms in all mods? because currently I m detecting only zero-k coms.

if UnitDefs[unitDefID].customParams.commtype then

EDIT: if UnitDefs[unitDefID].customParams.commtype or UnitDefs[unitDefID].customParams.iscommander then

works on BA and zk and similar thanks nixtux.

is features now unatackable? Because I have big feature and even when I set manual fire where aoe would hit it unit refuses attack it. It wasnt like this in 82.0


Last edited by wolas on 16 Apr 2012, 10:26, edited 1 time in total.
Top
 Offline Profile  
 
PostPosted: 15 Apr 2012, 22:25 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
what are you going to do about games that don't have commanders?
Top
 Offline Profile  
 
PostPosted: 15 Apr 2012, 22:31 

Joined: 30 Jul 2010, 19:40
This is for lol map like a duck and when com dies some cool sound is a must.
Top
 Offline Profile  
 
PostPosted: 15 Apr 2012, 22:31 
User avatar

Joined: 23 Feb 2009, 16:29
Location: Finland
The UnitDefs[unitDefID].customParams.iscommander works for xta too.
Top
 Offline Profile  
 
PostPosted: 15 Apr 2012, 22:32 
User avatar

Joined: 23 Feb 2009, 16:29
Location: Finland
But I think the best way to do it would be to make a table of all the unist that all present frame 1, since those are commanders.
Top
 Offline Profile  
 
PostPosted: 16 Apr 2012, 02:37 
User avatar

Joined: 28 Jul 2008, 05:51
Location: Australia
@jools: That's not a very reliable assumption. There are games and mutators where teams start with other unit types.
Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Group
Site layout created by Roflcopter et al.