View topic - Request for AIHCTraceRayId command tweak (Legacy C++ API)



All times are UTC + 1 hour


Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 08 Sep 2010, 11:32 
AI Coder

Joined: 17 Mar 2008, 19:03
Location: RF
Can smb add reading feature ID also if trace was successful? I would like to implement destroying barricades on group way.

It's rts\ExternalAI\AICheats.cpp, int CAICheats::HandleCommand(int commandId, void *data). When calling helper->TraceRay() there are 7 arguments passed, and feature can be retrieved via 8th.


Last edited by slogic on 10 Sep 2010, 11:40, edited 1 time in total.

Top
 Offline Profile  
 
PostPosted: 08 Sep 2010, 21:51 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
done, please test it with this build:
http://springrts.com/dl/buildbot/defaul ... -g1f664b6/

commit:
http://github.com/spring/spring/commit/ ... 5cd#L3R123


Top
 Offline Profile  
 
PostPosted: 10 Sep 2010, 10:33 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
i will have to alter this.
the specs for the callback & commands, allows only one return value. so it will be split into two commands. in other words, do not use as it is yet, and wait for the change please.


Top
 Offline Profile  
 
PostPosted: 10 Sep 2010, 10:59 
Spring Developer

Joined: 08 Oct 2006, 15:58
Why do you need more than one return value?


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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® Forum Software © phpBB Group

Site layout created by Roflcopter et al.