AngelScript code snippet database

This is a database of AngelScript code snippets, which can be used for scripting Jazz Jackrabbit 2 levels using JJ2+. You can find out more about JJ2+'s AngelScript capabilities and syntax in the scripting readme.

Latest snippets
Smoke Ring Gun (based on Foly's Throwing Bombs script) 2.0 July 10, 2013 18:52
This changes the Electroblaster projectiles to smoke rings, and that's it.
Base to flag 1.0 March 14, 2013 16:58
This is a code that works only for CTF or death CTF. When a player carries the red/blue flag and dies, it will move the red/blue base to the player instead of the flag back to the red/blue base. Because the server has to have a different way of detecting when a player loses the flag, there can be an error in the position of the bases. This is why this script doesn't work well for open levels like JE. Still, it can be fun to change the overplayed gamemode CTF a bit :)
Change TNT to throwing bombs 2.0 February 26, 2013 17:58
Does what the title says. The bomb explosion is the same as a TNT explosion, so setting tntdamage or extended tnt range will also affect these bombs. You can change behaviour by changing the bomb constants at the top of the code. Bombs can only be thrown left and right.
Blaster Trail 2.0 February 26, 2013 17:53
Creates a green trail (barrel shards) for the normal blaster bullets and a blue trail (ice shards) for normal and powered up ice bullets. Thanks to SE for telling me these where not green and blue leaves :P. Also i was a bit inspired by cooba's fireball trail.
Boomerang gun 3.0 February 26, 2013 17:41
This is a script that changes the upgraded blaster into a boomerang gun. The behaviour of the boomerang (faster, higher, etc) can be changed by changing the constants.
global trigger zone events 1.0 February 24, 2013 19:33
this script makes all the local trigger zones global. you need to use event ID 255 instead of trigger zone event, but you can change it and use any event. JCS.ini parameters:
Working FastFeet as food (like jj1) 1.0 February 19, 2013 20:18
Replaces any kind of object (change variable OBJECT::APPLE) to fast feet. It will add jump height per taken fast feet to a certain amount of maximum jump height set. This works like the jump upgrade in JJ1.
Powered-up Fireball on steroids 2.0 February 14, 2013 19:11
Basing on Violet's code...
Tomb Rabbit presets 1.0 February 10, 2013 13:23
Nothing special, it's just a bunch of basic expression to use in a Tomb Rabbit level.
Colorful Super Gems 1.0 February 09, 2013 17:52
Allows you to add green, blue and purple super gems and invisible gem stomps. To make use of this code you will have to edit two lines of your JCS.ini:
Triggar zones 1.0 February 05, 2013 01:24
I adapted my Punish campers xd! script so that you can use it to trigger whatever kind of stuff you want. It basically lets you define tiles in a level that are triggar zones, and then provides you with three events where you can handle them: one when the triggerzone is entered, one when it is left, and one when its been occupied for longer than your defined limit (you can just put the gameticks column to 0 and ignore that event along with the triggarTime-array, if you want).
Punish campers! xd 4.0 February 04, 2013 14:27
Illustrating what tiles are marked for camparea #3:
Random ammo and powerups 1.0 February 04, 2013 00:39
Does exactly what it says.
Blade gun (Electroblaster PU) 1.0 February 04, 2013 00:34
This will replace all powered-up electroblaster bullets with blades (discs), that can be controlled by the player. This works in multiplayer. Not tested in singleplayer.