Custom Map #3065: Radar Emitter. By: Sorrontis

Started by AutoPost, January 20, 2016, 12:07:32 AM

Previous topic - Next topic

AutoPost

This topic is for discussion of map #3065: Radar Emitter


Author: Sorrontis
Size: 128x84

Desc:
Oh, look, it's a friendly radar! #Sorrontis #RadarEmitter #CRPL

Sorrontis

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
"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."