GearTypes.wiki
changeset 856 9740fae28189
parent 855 0878a8e37afb
child 857 ca7261b5c679
equal deleted inserted replaced
855:0878a8e37afb 856:9740fae28189
   192 A hedgehog which does perform a resurrection.
   192 A hedgehog which does perform a resurrection.
   193 
   193 
   194  * `Radius`: Effect range of resurrection in pixels (default: 100). Note that this does not change the drawn circle
   194  * `Radius`: Effect range of resurrection in pixels (default: 100). Note that this does not change the drawn circle
   195 
   195 
   196 ==== `gtRope` ====
   196 ==== `gtRope` ====
   197 A rope.
   197 A rope. There can only be one rope gear at once.
   198 
   198 
       
   199 The gear state flag `gstCollision` is set when the previous rope shot has hit something and is reset each time a new hook it fired.
       
   200 
       
   201  * `X` and `Y`: Position of the nearest “bending point” of the rope (nearest to the rope gun), or the rope hook if rope does not touch anything
       
   202  * `dX`: sine of rope angle, number between -1000000 and 1000000 (correspond to -180° to 180°)
       
   203  * `dY`: negative cosine of rope angle, expressed as number between 0 and 10000000
       
   204  * `Elasticity`: If the hog is attached to a rope, or is busy firing one, the elasticity of the rope will be non-rezo. A non-zero number holds the current retracted length of the rope from the nearest “bending point” or the hook, times 10000
       
   205  * `Friction`: Holds the maximum remaning length of the rope measured from the nearest “bending point” or the hook, times 10000. Set this after rope creation to manually set the rope length individually. Note you can set `RopePercent` in `onGameInit` to set the rope length for all ropes at once
   199  * `Tag` Rope style: `0`=classic white segments (default), `1`=simple line which can be colored with `Tint`.
   206  * `Tag` Rope style: `0`=classic white segments (default), `1`=simple line which can be colored with `Tint`.
   200  * `Tint`: Rope color as RGBA. This only works if `Tag` equals `1`
   207  * `Tint`: Rope color as RGBA. This only works if `Tag` equals `1`
   201  * `Elasticity`: If a hog is attached to a rope, or is busy firing one, the elasticity of the rope will be non-rezo
       
   202 
   208 
   203 ==== `gtSwitcher` ====
   209 ==== `gtSwitcher` ====
   204 Switch hedgehog.
   210 Switch hedgehog.
   205 
   211 
   206 ==== `gtTardis` ====
   212 ==== `gtTardis` ====