79 Commits

Author SHA1 Message Date
hiker
ab915b20a3 Use toIrrVector(). 2014-10-28 16:00:28 +11:00
hiker
39b8f79f9f Fixed conflicts with my refactoring work. 2014-10-28 10:14:38 +11:00
hiker
891b0697dc Fixed compilation on VS. 2014-10-28 10:13:44 +11:00
Marianne Gagnon
139f20b39d Merge remote-tracking branch 'sachith/ScriptEngine'
Conflicts:
	CMakeLists.txt
	sources.cmake
	src/io/file_manager.cpp
	src/io/file_manager.hpp
	src/modes/world.hpp
	src/tracks/track.hpp
	src/tracks/track_object_presentation.cpp
2014-10-27 18:43:09 -04:00
Sachith Hasaranga Seneviratne
7e3143424e Cleaned Vec3 binding somewhat 2014-08-15 21:55:14 +05:30
Sachith Hasaranga Seneviratne
700a59f226 Added some comments to track script functions 2014-08-15 21:46:03 +05:30
Sachith Hasaranga Seneviratne
f01b69f901 Formatted script_physics.hpp 2014-08-15 21:39:36 +05:30
Sachith Hasaranga Seneviratne
cced247b4c Added comments to physics script functions 2014-08-15 21:37:48 +05:30
Sachith Hasaranga Seneviratne
772c923263 Added comments to kart script functions 2014-08-15 21:35:20 +05:30
Sachith Hasaranga Seneviratne
635d05af5e Added some comments to scriptengine.cpp 2014-08-15 21:27:39 +05:30
Sachith Hasaranga Seneviratne
b2a563c746 Fixed the ID for script created triggers were not being added to the track_object instance 2014-08-13 11:57:49 +05:30
Sachith Hasaranga Seneviratne
e7585906ea Added enable method specific to Physical Objects to allow previously disabled track objects to be renabled 2014-08-05 20:20:26 +05:30
Sachith Hasaranga Seneviratne
50faed49a9 Added global functions enable(string track_object_id) and disable(string track_object_id) for track objects 2014-08-05 19:53:11 +05:30
Sachith Hasaranga Seneviratne
cbebfcd428 Changed trigger creation method to use Vec3 2014-07-15 22:19:41 +05:30
Sachith Hasaranga Seneviratne
acd11ce738 Added sound trigger (one time and cyclic) 2014-07-12 09:13:47 +05:30
Sachith Hasaranga Seneviratne
44d502d1fe Added stop() to script-bound sounds 2014-07-12 07:34:35 +05:30
Sachith Hasaranga Seneviratne
060eb35898 Added access to kart location to scripts 2014-07-11 11:27:11 +05:30
Sachith Hasaranga Seneviratne
f9e1f16c47 Set up polymorhic overriding for script-bound TrackObjectPresentation methods 2014-07-11 07:35:24 +05:30
Sachith Hasaranga Seneviratne
07e4d35701 Added Vec3 to setVelocity function 2014-07-10 20:42:10 +05:30
Sachith Hasaranga Seneviratne
663869e729 Started unifying locations as Vec3 s 2014-07-10 16:38:15 +05:30
Sachith Hasaranga Seneviratne
008bf124ba Added different types of collision triggered scripts. Only available on a couple of tracks for testing at the moment 2014-07-08 17:52:47 +05:30
Sachith Hasaranga Seneviratne
6b70ea36af Bound sfx-emitters to scripts 2014-07-07 14:43:23 +05:30
Sachith Hasaranga Seneviratne
d5d0ffceb4 Bound particle emitters to scripts and added move functionality 2014-07-05 08:54:49 +05:30
Sachith Hasaranga Seneviratne
eb4f585b29 Added ability to trigger explosions (graphical only) via scripts, currently uses the cake explosion_bomb.xml 2014-07-04 12:04:28 +05:30
Sachith Hasaranga Seneviratne
097a6b6394 Hardcoded explosion working in hacienda now. TODO move into scripts for custom locations 2014-07-04 11:44:40 +05:30
Sachith Hasaranga Seneviratne
84fe9b09b7 Added move to meshes, created an example in greenvalley 2014-07-03 14:01:58 +05:30
Sachith Hasaranga Seneviratne
8292b4bce7 Moved triggers in green-valley in preparation for implementing 'move' for track objects 2014-07-03 09:56:29 +05:30
Sachith Hasaranga Seneviratne
52fd23566a Completed move of all tutorial messages to scripts 2014-06-26 20:47:37 +05:30
Sachith Hasaranga Seneviratne
3437977806 Added Player Action Enums to scripts 2014-06-25 20:32:59 +05:30
Sachith Hasaranga Seneviratne
a7416d1231 Added PlayerAction Enums as PA::ENUMNAME corresponding to the similiar value defined as PA_ENUMNAME under player actions 2014-06-24 19:30:20 +05:30
Sachith Hasaranga Seneviratne
df7b46a439 Key bindings now available via scripts 2014-06-24 18:12:42 +05:30
Sachith Hasaranga Seneviratne
a219585a41 Started adding configuration key bindings to scripting to move all tutorial messages to scripting 2014-06-24 08:45:27 +05:30
Sachith Hasaranga Seneviratne
f86b5f91af Trigger scripts now work by binding to the FUNCTION pointed by the trigger action instead of by the FILENAME. Started adding files into a structure similiar to that present in the tracks/ directory 2014-06-19 19:02:00 +05:30
Sachith Hasaranga Seneviratne
97c17692e8 Added setCurrentFrame to skeletal animations 2014-06-18 17:53:18 +05:30
Sachith Hasaranga Seneviratne
069c25653c Added ability for scripts to run other scripts and bound getFrameNumber for Skeletal animations to get current frame 2014-06-18 13:12:51 +05:30
Sachith Hasaranga Seneviratne
b7e3329d83 Added setLoop to skeletal animations, Test : rapidly nodding sheep in green valley, also incorporates trigger creation at start in the test. 2014-06-17 21:11:05 +05:30
Sachith Hasaranga Seneviratne
77ee20a5e2 Added script triggering at startup via start.as - meant to customize track object settings, and to create triggers / set their initial states as necessary 2014-06-17 18:50:55 +05:30
Sachith Hasaranga Seneviratne
ee73767572 Added possibility of triggering scripts via update method (ie everytime tracks etc are updated, this script will be called 2014-06-17 17:48:47 +05:30
Sachith Hasaranga Seneviratne
f0622f425d Added pausing capabilities to curve based (IPO) animations, bound ThreeDanimation class to scripts as type Animator 2014-06-16 20:42:48 +05:30
Sachith Hasaranga Seneviratne
0c24507821 Added Test for getMesh 2014-06-14 14:45:17 +05:30
Sachith Hasaranga Seneviratne
f29ed1c2a3 Bound Meshes to Scripts 2014-06-14 14:11:19 +05:30
Sachith Hasaranga Seneviratne
7d63813afd Added wrapper for PhysicalObject->removeBody and bound it to scripts 2014-06-13 08:30:11 +05:30
Sachith Hasaranga Seneviratne
14d64e9fae Bound function to check if a physical object is a flattener for testing 2014-06-11 12:30:48 +05:30
Sachith Hasaranga Seneviratne
f3a41a2631 Bound Physical Object class to scripts 2014-06-11 11:58:57 +05:30
Sachith Hasaranga Seneviratne
41a4619120 added bound setEnable method to TrackObject in scripts 2014-06-11 11:24:54 +05:30
Sachith Hasaranga Seneviratne
e567adb0ca Bound TrackObject type to scripts 2014-06-11 10:52:04 +05:30
Sachith Hasaranga Seneviratne
5498084cde Bound Vec3 class to scripts 2014-06-07 08:07:18 +05:30
Sachith Hasaranga Seneviratne
540c7818aa Scripts can now create action triggers by themselves. Example in tutorial 2014-06-03 10:09:03 +05:30
Sachith Hasaranga Seneviratne
b14f79288d Added ability for karts to jump to arbitrary locations on the map albeit somewhat inaccurately for now via the method jumpKartTo(kartID, targetx,target y) Notation is standard blender xyz 2014-06-02 21:26:27 +05:30
Sachith Hasaranga Seneviratne
88ea69fdc7 Added setVelocity to script functions for karts 2014-06-02 20:27:20 +05:30