Raised This Month: $ Target: $400
 0% 

Using hostages


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 05-18-2006 , 05:00  
Reply With Quote #9

I even don't need to check the old health and the new one (I don't need to check the right moment the hosatge got killed). It's sufficient if I check in code hostages parameters (as health or so) once per 5 seconds . I've precached at map start the list of hostages entities so I need to check only my table of hostages - I don't need to check every time through all map entities. It's sufficient for me if even after 5s after the hostage got killed I stop the bot to try to rescue him. But I'm still having troubles with "using" hostages detection. I wanted to try the moving (changing postion method)m but it fails in some situations, too. For example - when I go somewhere with some bots teamnates t oget the hostage. I press "use" button, but the hostage doesn't move until I'll go somewhere, so the bot-teamnate is still "thinking", the hostage is not used yet, and steals me it.
Well - to use private data I'll need more HL knowledge. Also to make the code depandant of the system (win32 and linux32 have different offset calculation than linuxAMD64). I may need to "inform" the compilator - compile it with such or such offset (because of the system it will be used with).
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
 



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 -4. The time now is 16:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode