diff --git a/resources/ChaosMod/tt_xfrnknstnx.png b/resources/ChaosMod/tt_xfrnknstnx.png index 80d80f2..109da42 100644 Binary files a/resources/ChaosMod/tt_xfrnknstnx.png and b/resources/ChaosMod/tt_xfrnknstnx.png differ diff --git a/src/gtasa/effects/custom/unsorted/PlayVideoEffect.cpp b/src/gtasa/effects/custom/unsorted/PlayVideoEffect.cpp new file mode 100644 index 0000000..eb4e584 --- /dev/null +++ b/src/gtasa/effects/custom/unsorted/PlayVideoEffect.cpp @@ -0,0 +1,32 @@ +/*** +WORK IN PROGRESS +***/ + +#include + +#include "effects/OneTimeEffect.h" +#include "util/hooks/HookMacros.h" + +#include +#include +#include +#include +#include +#include + +class PlayVideoEffect : public OneTimeEffect +{ + +public: + + void + OnStart (EffectInstance *inst) override + { + //char path_s[] = "movies\\GTAtitles.mpg"; + //char* path = path_s; + //plugin::Call<0x747660, int, char*>(0, path); + gGameState = 3; + } +}; + +DEFINE_EFFECT (PlayVideoEffect, "effect_play_video", 0); \ No newline at end of file diff --git a/src/gtasa/effects/custom/unsorted/SpawnRocket.cpp b/src/gtasa/effects/custom/unsorted/SpawnRocket.cpp new file mode 100644 index 0000000..1e4f475 --- /dev/null +++ b/src/gtasa/effects/custom/unsorted/SpawnRocket.cpp @@ -0,0 +1,29 @@ +#include "effects/OneTimeEffect.h" + +#include +#include +#include +#include +#include + +using namespace plugin; + +class SpawnRocket : public OneTimeEffect +{ +public: + void + OnStart (EffectInstance *inst) override + { + CPlayerPed *player = FindPlayerPed (); + if (!player) return; + + CVector position + = player->TransformFromObjectSpace (CVector (0.0f, 0.0f, 100.0f)); + + CVector a = player->TransformFromObjectSpace (CVector (10.0f, 10.0f, 0.0f)); + for(int i = 0; i < inst->Random(1,5); i++) + CProjectileInfo::AddProjectile(player, WEAPON_ROCKET_HS, player->TransformFromObjectSpace(CVector(0.0f, 0.0f, 100.0f)), 5.0f, &a, player); + } +}; + +DEFINE_EFFECT (SpawnRocket, "effect_spawn_rocket", 0); \ No newline at end of file