Grapple points

[Open Assets] Grapple points 2.0

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
I made sure my file(s) follow the Submissions Guidelines
  1. Yes
I named my file(s) correctly (see Filename Conventions)
  1. Yes
This script adds new mechanic to kart - grappling. When near grapple point, floating grey indicator will become green. When you in air (and not in pain :P) and you see green indicator, press BRAKE to start grapple and release it to stop. I hope that will help create more interesting maps :D

First, you will need to create grapple point object.
Create a new lua script and add following:
mygrapplepoint.lua:
grapple.registerGrapplePoint("MY_GRAPPLE_POINT", {})
First argument is object name (without the MT_ prefix), second argument are customization parameters. You can look into GrappleExample.pk3, Lua/example.lua for list of all possible parameters and their meanings. If some of them are not specified, default values will be used.

Next, you may want to customize your grapple point object, that can be done in SOC or Lua, here is way to do it in SOC so your object type will appear in Zone Builder:

Sonic Object Configuration (SOC):
freeslot
S_MY_GRAPPLE_POINT

Object MT_MY_GRAPPLE_POINT
#$Name My grapple point
#$Sprite RINGA0
#$Category Grappling
SpawnState = S_MY_GRAPPLE_POINT
Flags = MF_NOGRAVITY|MF_NOBLOCKMAP|MF_NOCLIP|MF_NOCLIPHEIGHT|MF_RUNSPAWNFUNC
MapThingNum = 1111

State S_MY_GRAPPLE_POINT
SpriteName = RING
SpriteFrame = A|FF_ANIMATE
Var1 = 23
Var2 = 1
Duration = -1

Now you can add grapple points into your map! Map in GrappleExample.pk3 (MAPGT) shows 2 variants of grapple point usage but feel free to experiment!
  • kart0007.gif
    kart0007.gif
    3.8 MB · Views: 420
Author
indev
Downloads
1,414
Views
3,551
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from indev

Share this resource

Latest updates

  1. Major update

    The script was refactored, with improved way of customization. Look into GrappleExample.pk3 for...
  2. Boss Waypoints

    Add boss waypoints on map so race positions should work more or less correctly now (didn't know...
  3. Vertical momentum cap

    Now when player release graple point, their vertical momentum gets capped and cut off speed is...
Back
Top