diff options
author | Stephen Simpson <megazig@gmail.com> | 2011-10-13 21:23:12 -0500 |
---|---|---|
committer | Stephen Simpson <megazig@gmail.com> | 2011-10-13 21:23:12 -0500 |
commit | 9098cb8b28c089d8abe1b2ff7d9010ab5c6d8766 (patch) | |
tree | 04921be487c55c1e995aedff1a7059b0a68342b1 /src/effects.cpp | |
parent | 7a4ee17ea46742a5aff331ad195eb5be098c01b2 (diff) | |
download | kamek-9098cb8b28c089d8abe1b2ff7d9010ab5c6d8766.tar.gz kamek-9098cb8b28c089d8abe1b2ff7d9010ab5c6d8766.zip |
Started work on animations
Diffstat (limited to 'src/effects.cpp')
-rw-r--r-- | src/effects.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/effects.cpp b/src/effects.cpp index 40f08a2..3b2d5c7 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -1041,6 +1041,15 @@ bool CreateEffect(const char* name, Vec* pos) { return SpawnEffect(name, 0, pos, 0, 0); } +bool CreateEffect(int effect_num, Vec* pos, S16Vec* rot, Vec* scale) { + if (effect_num > 1000) + return false; + if (effect_num < 0) + return false; + const char* effect_name = effects_name_list[effect_num]; + return SpawnEffect(effect_name, 0, pos, rot, scale); +} + /* void* CustomEffectSpawn(const char* name) { // FILL ME IN |