Home   Help Search Login Register  

Author Topic: Radar?  (Read 606 times)

0 Members and 2 Guests are viewing this topic.

Gooner861

  • Guest
Radar?
« on: 09 Jul 2003, 21:31:59 »
Shouldnt there really b sumthing do with radar to pick up planes etc.

swift88

  • Guest
Re:Radar?
« Reply #1 on: 09 Jul 2003, 21:33:20 »
u know the white sort of haze above the game play, with all the red and green squares, thats the radar

Gooner861

  • Guest
Re:Radar?
« Reply #2 on: 09 Jul 2003, 21:53:55 »
LOL crap i forgot about that, well ,ummm, i actually meant, ummm, bollocks.

aazell

  • Guest
Re:Radar?
« Reply #3 on: 10 Jul 2003, 14:56:56 »
Yes but these vehicles are not shown on the map.

Using the reveal command you can create a script that reveals any units on the map within your area that are flying above 50 ft. Great for multiplayer. I think I'll go script this now.

Aaz

aazell

  • Guest
Re:Radar?
« Reply #4 on: 10 Jul 2003, 16:59:19 »
Here's a breif radar script I just knocked together. I havn't tested this yet. If anyone wants to take a look and let me know if this work's or if I have made any obvious mistakes then thats cool with me.

Quote
;Radar script
; Detects unit within radar range and if enemy players are in vehicle it will track them and display their location on map.
;start radar loop
;A trigger in your map should act as radar area  name this trigger usradar
;and set it to repeatable.
;Under condition in trigger place the following                      player in thislist
;under activation of radar trigger place the following               [player] exec "usradar.sqs"

;establish contact name
_contact = _this select 0

;establish contact type vehicle or man
_contacttype = vehicle _contact

;check contact type
;if contact type not vehicle then exit. vehicle check should return player unit name rather than vehicle name if player not in vehicle
;if it is a vehicle then track it
? _contacttype = _contact : exit

;loop to start radar tracking
#radartrack

;get position of contact
_contactpos = getpos _contact

;establish distance between radar base and contact
_inrange = _contactpos distance usradar

;display contact on map
west reveal _contact

;inform side that radar contact available on map
west sidechat "US Radar is tracking vehicle contact"

;wait 0.5 seconds for radar beam
~0.5

;check range of contact if contact in range continue to track
;if contact out of range inform side that contact was lost and end radar track
? _inrange < 500 : goto "radartrack"
west sidechat "US Radar has lost vehicle contact"
Exit

This probably won't work straight away. You may need to play with it a little. I'll test this a little later and let you know if I found anything wrong with it.
« Last Edit: 10 Jul 2003, 17:15:33 by aazell »

Gooner861

  • Guest
Re:Radar?
« Reply #5 on: 10 Jul 2003, 17:04:46 »
Cool well dun.  ;D

aazell

  • Guest
Re:Radar?
« Reply #6 on: 10 Jul 2003, 17:22:38 »
Oh I decided to forget the whole 50ft above the ground thing. Might be fun on a chopper or plane mission though. Duck below radar coverage an all that jazz.

I'll look at putting that together later maybe.

For the moment I'm going to use this in my upcomming MP mission.