# File Archive

Carnage Contest Weapons Ventilator

# Ventilator

01.07.11 08:11:51 pm
5 like it!
Kiffer-Opa
User
Offline
(version 1.0)

The ventilator is a tool which used to change the wind power and even the wind direction. It is used to annoy the hell out of players which are on the wrong side of the map.
You simply place it anywhere on the map with one single click close to your player. The ventilator will face in the same direction as you do.

After you placed the ventilator, your turn ends. From now on, the ventilator stands on the map as an object and changes the wind on every turn start.

If the ventilator faces left, the (natural) wind will be pushed to the left, if you pushed it right, then it pushes the natural wind to the right.
The ventilator effect only applies on the start of each turn. The player can still tamper with the wind with (for example) the "No Wind" extra. The ventilator ignores this.

The default ventilator changes it so strong that if the natural wind is maximum left and the ventilator faces right, the resulting wind will be zero and if natural wind is zero, the result wind is maximum right.
So with one right-facing ventilator the wind only can range from zero to maximum right now instead from maximum left to maximum right.

It is possible to have multiple ventilators on the map. If there are at least two right-facing ventilators and no left-facing, resulting wind will ALWAYS be maximum right now.
You can undo the wind effect in multiple ways:
Destroy the ventilator. Shouldn't be too hard, a ventilator has only 30 HP. And it explodes on destruction.
Build another ventilator which faces in the opposite direction. The wind change of 2 ventilators facing opposite directions is zero.
If you destroy the ventilator, the ventilator effect stops finally on the next turn and not immediately

There is a simple formula to calculate the possible wind on a turn start:
W=R–L
W is resulting wind
L is the number of left-facing ventilators
R is the number of right facing ventilators.
the meaning of the possible W values are:
–2 and lower: wind blows at maximum left
–1: wind ranges from maximum left to zero
0: wind ranges from maximum left to maximum right
1: wind range from zero to max. right
2 and higher: wind is max. right

Technical stuff:
I added some easy-to-change settings into the script. Just open the CC/scripts/Kiffer-Opa/Ventilator.lua in any text editor and look for the settings. Currently, it is possible to change the animation speed and more important: the wind power of the ventilators. How this works is written in this file.
This file has been reviewed and approved by SQ (15.12.15 09:37:20 am)

Goto Page
1

03.07.11 05:22:36 am
I like it!
Zyga
User
Offline
Quote:
lol i was hoping it can blow players away but still its awesome

make that and ill give an extra star lol

(6)
02.07.11 12:15:30 pm
I like it!
Arne
User
Offline
Wow, this thing is powerful! This is just awesome, and I really like the way you've put how everything works in the Lua as comments.
02.07.11 10:27:59 am
I like it!
Night Till Death
User
Offline
lol i was hoping it can blow players away but still its awesome
01.07.11 08:52:51 pm
I like it!
Yates
Reviewer
Offline