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.