Page 1 of 1

Some questions about the OffZone tornado...

Posted: 25 Jun 2015, 13:19
by Nerpson
Hey!

I have some questions dealing with the Royal's tornado.

Firstly, I saw it's possible to center it on other blocks than poles. But is it possible to center it on a player? If yes, how?

I also saw these three variables:
  • OffZoneRadius
  • OffZoneRadiusSpeed
  • OffZoneCenterBlockId
But I can't find where they're really declared and used, where the tornado is created with these. Can you tell me?

A last question not very relative to the topic... Anyway, is there means to get the CBlock where a CSmPlayer stands on?

Thanks! :thx:

Re: Some questions about the OffZone tornado...

Posted: 26 Jun 2015, 13:36
by Eole
Hi,
Nerpson wrote:Firstly, I saw it's possible to center it on other blocks than poles. But is it possible to center it on a player?
No.
Nerpson wrote:I also saw these three variables:
OffZoneRadius
OffZoneRadiusSpeed
OffZoneCenterBlockId
But I can't find where they're really declared and used, where the tornado is created with these. Can you tell me?
These three variables are available in CSmMode by default.
OffZoneRadius controls the radius of the tornado.
OffZoneRadiusSpeed controls the speed of increase/decrease of the tornado radius.
OffZoneCenterBlockId (or OffZoneCenterLandmarkId) set the landmark used as the center of the tornado.

By default OffZoneRadius = -1, which means that the tornado is disabled. If you set this to something above 0 you will have a tornado with the given radius. If I remember correctly one block in SM is 8 meter large. So if you set OffZoneRadius to 8 your tornado will contains 1 block.
If you set OffZoneRadiusSpeed to a positive value the radius of the tornado will automatically decrease.
Nerpson wrote:A last question not very relative to the topic... Anyway, is there means to get the CBlock where a CSmPlayer stands on?
No, unless the block is a landmark (pole, checkpoint, gate). Then you can access Player.CapturedLandmark.

Re: Some questions about the OffZone tornado...

Posted: 26 Jun 2015, 14:44
by Dommy
Eole wrote:If I remember correctly one block in SM is 8 meter large. So if you set OffZoneRadius to 8 your tornado will contains 1 block.
Circumscribed circle radius on 8 m wide quadrilateral is 4√2 m. Math proven.

Re: Some questions about the OffZone tornado...

Posted: 22 Jul 2015, 07:24
by kadaz
I gather the Collector "spawn" pole is still capturable.. like so in Royal.

But why is it so, when used separately, and this is the same for Gate..

Code: Select all

declare Gate <=> SM::GetPole("Gate", 0);
declare Drop <=> SM::GetPole("Collector", 0);
The Gate work like like normal, even though it uses a gauge script..
and when using the Collector, it freezes the game so have to restart mp3

:arrow: I get the Pole / Goal and the Base / Checkpoint working great !!

But not the Gate or the Collector.