ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Speed: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Testid123 (talk | contribs)
mNo edit summary
ATHSE (talk | contribs)
m Reverted edit by EvilRenegade (talk) to last revision by DeathFish
Tag: Rollback
 
(8 intermediate revisions by 4 users not shown)
Line 2: Line 2:
|name={{PAGENAME}}
|name={{PAGENAME}}
|files={{Categ|Rules(md).ini}}
|files={{Categ|Rules(md).ini}}
|values=0 - 100
|values={{Values|integer}}
|special=
|default=0
|default=none
|types={{Categ|JumpjetControls}}, {{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|Weapons}}
|types={{Categ|JumpjetControls}}, {{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}, {{Categ|Weapons}}
|ra=yes
|ra=yes
|cs=yes
|cs=yes
Line 11: Line 10:
|ts=yes
|ts=yes
|fs=yes
|fs=yes
|ets=yes
|hp=yes
|ra2=yes
|ra2=yes
|yr=yes
|yr=yes
|rp=yes
|ares=yes
}}
}}
== On Unit Types ==
Specifies the movement speed of this unit, subject to 'land characteristics' which can set different speed modifiers per [[SpeedType]], when passing over different [[LandTypes]].


== On ObjectTypes ==
The program calculates the actual speed using the formula <code>min( (min(Speed, 100) * 256 / 100), 255 )</code>. Starting from [[Phobos]] Build#45, the Speed parameter now supports floating-point values.


Specifies the movement speed of this ObjectType.
=== On Infantry Types ===
Infantry units have their movement speed hard-coded to two-thirds of their original speed when crawling, and three-halves of their original speed when not crawling.


== On WeaponTypes ==
=== On Vehicle Types ===
Specifies the speed the weapon's projectile will have when fired. This only works on projectiles with a [[ROT]] larger than 0. The value will also be ignored if the weapon is used as an [[AirburstWeapon]].
The VehicleType with {{f|Locomotor|Drive/Ship|link}} hard-coded has its speed reduced to three-quarters of the original when crippled


== On JumpJet Controls ==
== On Weapons ==
Specifies the top speed a projectile will have after being fired, subject to [[Acceleration]] rate if present. This only works on projectiles with a [[ROT]] greater than 0. The value will also be ignored if the weapon is used as an [[AirburstWeapon]].
 
== [JumpJetControls] ==
Specifies the speed of units flying using the Jumpjet locomotor in {{ts}}.
Specifies the speed of units flying using the Jumpjet locomotor in {{ts}}.


In {{ra2}} and {{yr}} individual units have to define {{f|JumpjetSpeed|link}} instead.
In {{ra2}}, [[JumpJet]] units have to define [[JumpjetSpeed]] instead, as long as they use the correct [[Locomotor]], using the wrong one will fallback to using the <tt>Speed=</tt> value.
 
== In Powerups ==
 
{{Flag
|name={{PAGENAME}}
|files={{Categ|Rules(md).ini}}
|values={{values|special}}
|special=
|default=none
|types={{Categ|Powerups}}
|ra=yes
|cs=yes
|am=yes
|ts=yes
|fs=yes
|ets=yes
|ra2=yes
|yr=yes
|rp=yes
}}


See [{{f|Powerups|link}}].
== [Powerups] ==
<tt>Speed</tt> is used differently here, as it's a crate property chance, see: [[Powerups]].


{{Bugs}}
{{Bugs}}
*Even if [[Red Alert]] does not have [[Locomotor]], if [[InfantryTypes]] has too much Speed It will move with problems This restriction is the same as {{f|Locomotor|{4A582744-9839-11d1-B709-00A024DDAFD1}|Link}}.
While {{ra}} does not have explicit <tt>Locomotor</tt> settings, if any [[InfantryTypes|infantry]] has too high of a <tt>Speed=</tt> value, it will move erratically. This restriction is the same as <tt>Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}</tt>.

Latest revision as of 20:30, 20 April 2025

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Speed
File(s): Rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: JumpjetControls, InfantryTypes, VehicleTypes, AircraftTypes, Weapons


On Unit Types

Specifies the movement speed of this unit, subject to 'land characteristics' which can set different speed modifiers per SpeedType, when passing over different LandTypes.

The program calculates the actual speed using the formula min( (min(Speed, 100) * 256 / 100), 255 ). Starting from Phobos Build#45, the Speed parameter now supports floating-point values.

On Infantry Types

Infantry units have their movement speed hard-coded to two-thirds of their original speed when crawling, and three-halves of their original speed when not crawling.

On Vehicle Types

The VehicleType with Locomotor=Drive/Ship hard-coded has its speed reduced to three-quarters of the original when crippled

On Weapons

Specifies the top speed a projectile will have after being fired, subject to Acceleration rate if present. This only works on projectiles with a ROT greater than 0. The value will also be ignored if the weapon is used as an AirburstWeapon.

[JumpJetControls]

Specifies the speed of units flying using the Jumpjet locomotor in Tiberian Sun.

In Red Alert 2, JumpJet units have to define JumpjetSpeed instead, as long as they use the correct Locomotor, using the wrong one will fallback to using the Speed= value.

[Powerups]

Speed is used differently here, as it's a crate property chance, see: Powerups.

Bugs/Side-Effects/Unexpected Limitations

While Red Alert does not have explicit Locomotor settings, if any infantry has too high of a Speed= value, it will move erratically. This restriction is the same as Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}.