31 + Preview for dynamic maps generated by game style scripts (e.g. "ShoppaMap))! |
31 + Preview for dynamic maps generated by game style scripts (e.g. "ShoppaMap))! |
32 + Moved room status filter to top left of rooms list. |
32 + Moved room status filter to top left of rooms list. |
33 |
33 |
34 Lua API: |
34 Lua API: |
35 + More helpful syntax error messages. |
35 + More helpful syntax error messages. |
36 + New hooks: onParameters(), onPreviewInit(). |
36 + New hooks: |
|
37 onParameters(paramString) -- called when script parameters are configured. the parameter contains the parameter(s) as text string |
|
38 onPreviewInit() -- called during map preview initialization |
|
39 onGearWaterSkip(gearUid) -- called when a gear skims the water without drowning (when hitting it with high speed at low angle). By checking gearUid you can figure out which gear that was. |
37 + New functions: |
40 + New functions: |
38 Dismissteam(teamname) |
41 Dismissteam(teamname) -- removes a team from the game (note: if you used loc() on teamnames, don't forget to the translated teamname here too) |
39 GetGameFlag(gameflag) -- returns true/false |
42 GetGameFlag(gameflag) -- returns true/false |
40 PlaceSprite(x, y, sprite, frameIdx [, landFlag, ... ]) -- sprite refers to an id from the TSprite list |
43 PlaceSprite(x, y, sprite, frameIdx [, landFlag, ... ]) -- sprite refers to an id from the TSprite list |
41 SetWaterLine(waterline) -- moves water level to the specified y. the current value is in read-only global waterline |
44 SetWaterLine(waterline) -- moves water level to the specified y. the current value is in read-only global waterline |
42 SetNextWeapon() -- make current hedgehog switch to next weapon. e.g. use in trainings to preselect weapon |
45 SetNextWeapon() -- make current hedgehog switch to next weapon. e.g. use in trainings to preselect weapon |
43 SetWeapon(ammoType) -- decide which weapon the current hedgehog should equip |
46 SetWeapon(ammoType) -- decide which weapon the current hedgehog should equip |
49 Mapgens: mgRandom, mgMaze, mgPerlin, mgDrawn |
52 Mapgens: mgRandom, mgMaze, mgPerlin, mgDrawn |
50 TSprite values |
53 TSprite values |
51 LandFlags: lfIndestructible, lfIce, lfBouncy |
54 LandFlags: lfIndestructible, lfIce, lfBouncy |
52 + Changed functions: |
55 + Changed functions: |
53 HogSay(gearUid, text, manner [, vgState]) -- now also allows you to make NON-Hedgehog gears speak, e.g. barrels... wait what?! |
56 HogSay(gearUid, text, manner [, vgState]) -- now also allows you to make NON-Hedgehog gears speak, e.g. barrels... wait what?! |
54 |
57 + Changed hooks: |
|
58 onHogAttack() can now be hooked with new parameter: onHogAttack(ammoType) - to conveniently find out which ammo/weapon is being used |
|
59 * Fixes: |
|
60 gfResetHealth is now a available like the other GameFlags |
55 0.9.19 -> 0.9.20: |
61 0.9.19 -> 0.9.20: |
56 + New campaign, A Space Adventure! |
62 + New campaign, A Space Adventure! |
57 + Password protected rooms |
63 + Password protected rooms |
58 + Shapes on drawn maps (ellipses, rectangles) - constrain dimensions with ctrl, as with straight line tool. |
64 + Shapes on drawn maps (ellipses, rectangles) - constrain dimensions with ctrl, as with straight line tool. |
59 + New rubber utility, lfBouncy mask (green) for maps. lfBouncy is also anti-portal. |
65 + New rubber utility, lfBouncy mask (green) for maps. lfBouncy is also anti-portal. |