GearTypes.wiki
changeset 1076 51733f19cfe2
parent 1070 a4ef27a698aa
child 1077 3c08441d5c2e
equal deleted inserted replaced
1075:5b0cf2c32218 1076:51733f19cfe2
   224 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.
   224 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.
   225 
   225 
   226  * `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
   226  * `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
   227  * `dX`: sine of rope angle, number between -1000000 and 1000000 (correspond to -180° to 180°)
   227  * `dX`: sine of rope angle, number between -1000000 and 1000000 (correspond to -180° to 180°)
   228  * `dY`: negative cosine of rope angle, expressed as number between 0 and 1000000
   228  * `dY`: negative cosine of rope angle, expressed as number between 0 and 1000000
   229  * `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
   229  * `Elasticity`: If the hog is attached to a rope, or is busy firing one, the elasticity of the rope will be non-zero. A non-zero number holds the current retracted length of the rope from the nearest “bending point” or the hook, times 10000
   230  * `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
   230  * `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
   231  * `Tag` Rope style: `0`=classic white segments (default), `1`=simple line which can be colored with `Tint`.
   231  * `Tag` Rope style: `0`=classic white segments (default), `1`=simple line which can be colored with `Tint`.
   232  * `Tint`: Rope color as RGBA. This only works if `Tag` equals `1`
   232  * `Tint`: Rope color as RGBA. This only works if `Tag` equals `1`
   233 
   233 
   234 Note: `dX` and `dY` are returned by the `GetGearVelocity` function.
   234 Note: `dX` and `dY` are returned by the `GetGearVelocity` function.