Some questions about the OffZone tornado...

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
Nerpson
Translator
Translator
Posts: 1554
Joined: 27 Sep 2013, 18:02
Location: France
Contact:

Some questions about the OffZone tornado...

Post 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:
ImageImageImageImage
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Some questions about the OffZone tornado...

Post 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.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Some questions about the OffZone tornado...

Post 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.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
User avatar
kadaz
Posts: 383
Joined: 10 Sep 2011, 23:34
Location: British Columbia
Contact:

Re: Some questions about the OffZone tornado...

Post 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.
US: Meltdown Combat Server: maniaplanet://#join=smrock@SMStorm 十 Offline
EU: Meltdown Combat Server: maniaplanet://#join=smpage@SMStorm 十 Offline
US: SMTRAK Startup Server: maniaplanet://#join=tmrock@SMStadium 十 Online
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest