This topic is for discussion of map #3065: Radar Emitter
(http://knucklecracker.com/creeperworld3/queryMaps.php?query=thumbnailid&id=3065)
Author: Sorrontis
Size: 128x84
Desc:
Oh, look, it's a friendly radar! #Sorrontis #RadarEmitter #CRPL
Alright, that's enough for tonight.
Here's the code for the Radar Emitter
once
CurrentX ->x1
CurrentY ->y1
$angle:0
0 ->time
$len:21
$freq:2000
endonce
<-angle cos ->xcos
<-angle sin ->ysin
<-time 636 lte if
GetGameTimeFrames 3 mod if
<-len 0 do
i <-xcos mul ->x2
i <-ysin mul ->y2
<-x2 <-x1 add ->xf
<-y2 <-y1 add ->yf
<-len i sub ->amount
<-xf <-yf <-amount SetCreeperNoLower
loop
endif
endif
<-time 1 add ->time
<-angle 0.01 add ->angle
GetGameTimeFrames <-freq mod eq0 if
0 ->time
endif
TRUE PersistCore