Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How does the obilisk choose its targets?
How does the obilisk choose its targets? [message #355982] Mon, 27 October 2008 10:50 Go to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Does anyone know how the obilisk chooses its targets? Is it simply any random GameObject * that isn't it's own team and within range, or does it have a priority? Is there any intelligence in decision making, or is it random?

Just curious...



Re: How does the obilisk choose its targets? [message #355984 is a reply to message #355982] Mon, 27 October 2008 11:04 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Basically it fires at the object that came in sight first. If that object goes out of sight it will target at the one it finds first. This is probably the oldest object (which has the lowest id), but it may be quite random as well, not sure about that. So in general you can only predict that it targets at the first object in sight.

Note that it checks in 0.5 second delays, so sometimes it will not detect that an object goes out of sight (thus keep the same target) or it will "see" two objects going in sight at the same time. In that case it will be virtually random again, see above.

So basically it doesn't have intelligence in target prediction.

So every 0.5 seconds:
- If the previously targeted object is still visible, keep targeting it.
- Otherwise, target the first visible object found. (order for finding objects is not defined).

Well, I just explained it three times, but I still feel it's not very clear. If you got any followup questions, ask. Smile


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/

[Updated on: Mon, 27 October 2008 11:04]

Report message to a moderator

Re: How does the obilisk choose its targets? [message #356031 is a reply to message #355982] Mon, 27 October 2008 14:15 Go to previous messageGo to next message
bisen11 is currently offline  bisen11
Messages: 797
Registered: December 2004
Karma: 0
Colonel
In my experience it's always targeted infintry before vehicles. Which is bad for nod but if you're gdi you can sort of take one for the team.

http://i6.photobucket.com/albums/y206/bisen11/bisensubzerosig2.jpg
Re: How does the obilisk choose its targets? [message #356033 is a reply to message #355982] Mon, 27 October 2008 14:31 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
I noticed the Obelisk always shots the last Unit,

like: on a rush the obelisk will shot at the last vehicle, not the fist vehicle
Re: How does the obilisk choose its targets? [message #356044 is a reply to message #355982] Mon, 27 October 2008 14:54 Go to previous messageGo to next message
IronWarrior is currently offline  IronWarrior
Messages: 2460
Registered: November 2004
Location: England UK
Karma: 0
General (2 Stars)
I think it's mostly first come first served. Razz

Since we all done the old tactic of being a decoy for the OBI to allow a other player to rush forward and sneak in somewhere or plant a beacon while the OBI is busy flying the first guy. Razz
Re: How does the obilisk choose its targets? [message #356045 is a reply to message #356031] Mon, 27 October 2008 14:56 Go to previous messageGo to next message
cnc95fan is currently offline  cnc95fan
Messages: 1261
Registered: July 2007
Karma: 0
General (1 Star)
bisen11 wrote on Mon, 27 October 2008 14:15

In my experience it's always targeted infintry before vehicles. Which is bad for nod but if you're gdi you can sort of take one for the team.

A friendly-fireing obby? Razz
Re: How does the obilisk choose its targets? [message #356085 is a reply to message #355982] Tue, 28 October 2008 00:48 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9738
Registered: March 2005
Location: Belgium
Karma: 14
General (5 Stars)
Goztoe
I also noticed that the oby always shoots the last thing that came in its sight, except for the oby on the BI and TK2 servers which shoots the first thing that comes in sight, which seems the most logical thing to do. It's very obvious when you're trying to walk in Ref on Field with two hotties: one gets killed, one makes it in. usually the one at the back gets killed but on BI and TK2 serevrs, the one on front gets killed.

So seye, u must have played with it at some moment Razz.


You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: How does the obilisk choose its targets? [message #356098 is a reply to message #355982] Tue, 28 October 2008 05:15 Go to previous messageGo to next message
GrimmNL is currently offline  GrimmNL
Messages: 120
Registered: June 2005
Location: Netherlands, Almere
Karma: 0
Recruit
i just know it always shoots at ME Sad

Xfire account: GrimmNL
http://members.lycos.nl/signature/grimm
Re: How does the obilisk choose its targets? [message #356099 is a reply to message #355982] Tue, 28 October 2008 05:30 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
I noticed if someone ( a vehicle for example ) draws ob's attention to it so inf can run out of tuns into a building (etc) it shoots vech but when inf comes out it shoots inf (and the splash mostly kills multiple ppl)
Re: How does the obilisk choose its targets? [message #356154 is a reply to message #355984] Tue, 28 October 2008 12:46 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
StealthEye wrote on Mon, 27 October 2008 13:04

Basically it fires at the object that came in sight first. If that object goes out of sight it will target at the one it finds first. This is probably the oldest object (which has the lowest id), but it may be quite random as well, not sure about that. So in general you can only predict that it targets at the first object in sight.

Note that it checks in 0.5 second delays, so sometimes it will not detect that an object goes out of sight (thus keep the same target) or it will "see" two objects going in sight at the same time. In that case it will be virtually random again, see above.

So basically it doesn't have intelligence in target prediction.

So every 0.5 seconds:
- If the previously targeted object is still visible, keep targeting it.
- Otherwise, target the first visible object found. (order for finding objects is not defined).

Well, I just explained it three times, but I still feel it's not very clear. If you got any followup questions, ask. Smile



It that through reverse engineering, or educated guess?

I've always though the Obilisk could do with some intelligence when choosing targets, more so then the AGT.



Re: How does the obilisk choose its targets? [message #356157 is a reply to message #355982] Tue, 28 October 2008 13:14 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

I cloned the original obelisk script to fix the "obby stays charged" bug. This is how the script works. Since people say it apparently does not shoot the first vehicle, perhaps there was another bug in there that I fixed so that it now does. The .5 second thing is accurate anyway. That's the way AI enemy seen logic works. If it indeed does not fire at the first vehicle on default, I assume it fires at the thing it apparently finds last, in which case I can not predict what it would be. It seems unlikely to me that it would always pick the object latest in view.

I agree that improving the target picking might be nice, but it could influence gameplay quite a bit. (Shoot the hotty rather than the engi / shoot the vehicle that will die in one shot rather than the one that can survive another / shoot the vehicle furthest away because maybe you can fire another shot at it / etc). Iirc scripts contains a obelisk script clone (M00_Obelisk or M00_Obelisk_Weapon or something?), you should be able to enable its registrant and play around to find some nice algorithm. I'm interested in the results.


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: How does the obilisk choose its targets? [message #356162 is a reply to message #355982] Tue, 28 October 2008 13:35 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Me too, an intelligent base defence could impact games massively. Infact, whilst some players would pick up on this, I fear all it would largely accomplish is thwarted efforts of teamwork. Probably best to leave it alone, but it's interesting all the same.


Re: How does the obilisk choose its targets? [message #356176 is a reply to message #355982] Tue, 28 October 2008 15:43 Go to previous messageGo to next message
w0dka is currently offline  w0dka
Messages: 181
Registered: March 2006
Location: Leipzig, Germany
Karma: 0
Recruit
pseudoalgorithm:

Obelisc loads on enemy entering line of sight.

On OBELISC_loaded get hpvalue of all units in line of fire && range 

sort after min hits.

exclude all units from possible target list that need more hits then the lowest hp one. 

sort all units that will die in least possible hits for vehicles, no vehicle found choose infantrypriority list. if vehicle found use vehicle priority list.

vehicle priority list: 
Mammoth
Flamer 
APC
Stank 
Med & Light
Art & MLRS
Buggy & Hmvee


inf. priority list:
Hotwire& tech
Units sorted after cost. 

if there are more wounded mammys or such things ob will always choose that with lowest hp, or if all the same that closest to ob.

/repeat till nothing in line of sight.



just my idea after thinking 5 mins....

in my experience the ob chooses the the last entering'/ farthest away object. Remember a match on field where we mammycharge them. one mammy stayed and shelled the hon while all others charge in and nuke the ob/rest of base. The ob only tried to hit the honmammy. But 'cause of feeled like 6 hotwires he didn't die.


Thanks.

[Updated on: Tue, 28 October 2008 15:46]

Report message to a moderator

Re: How does the obilisk choose its targets? [message #356800 is a reply to message #356162] Sat, 01 November 2008 22:19 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
reborn wrote on Tue, 28 October 2008 13:35

Me too, an intelligent base defence could impact games massively. Infact, whilst some players would pick up on this, I fear all it would largely accomplish is thwarted efforts of teamwork. Probably best to leave it alone, but it's interesting all the same.



Didn't I release a base defense script to you for C&C Reborn? :\ lol
Re: How does the obilisk choose its targets? [message #356817 is a reply to message #355982] Sun, 02 November 2008 02:58 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
If players' object IDs are the same as their pIDs (which are from 1 onwards) then possibly the reason the obby targets them first is because it scans object IDs upwards.

WOL: Veyrdite Previously: Dthdealer ( a long time ago )
Re: How does the obilisk choose its targets? [message #356914 is a reply to message #355982] Sun, 02 November 2008 14:20 Go to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
I just remembered... My base defense scripts were meant for secondary base defenses Mad

Not primary ones :\ lol

Anyway..My scripts make it so base-defenses come in 4 types. (anti-inf, anti-air, anti-veh, and general defense)

They've got an internal targeting system that determines what to shoot at based upon the priority level the Enemy_Seen event "sees" - it stores one target's ID and if it sees another one (and it's bound to see more than one ...) It goes through a check to determine whether it's a higher priority target.


* Note: These AI Scripts are based upon a conversation with danpaul88 shortly after he showed off his AI through a Video for Apocalypse Rising. (I asked him how I could make my own AI Scripts and he told me how he did it for AR...so, Credits go to AR/dp88, I think)
Previous Topic: Obi...
Next Topic: [REQUEST] Star Wars 500 sniper request.
Goto Forum:
  


Current Time: Thu Dec 19 10:52:18 MST 2024

Total time taken to generate the page: 0.00976 seconds