Skip to content

Commit

Permalink
Change Frank Image
Browse files Browse the repository at this point in the history
  • Loading branch information
AthallahDzaki committed Oct 25, 2024
1 parent 4362777 commit 546d892
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
Binary file modified resources/ChaosMod/tt_xfrnknstnx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/gtasa/effects/custom/unsorted/PlayVideoEffect.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/***
WORK IN PROGRESS
***/

#include <cmath>

#include "effects/OneTimeEffect.h"
#include "util/hooks/HookMacros.h"

#include <RenderWare.h>
#include <CCredits.h>
#include <CTimer.h>
#include <CFont.h>
#include <CText.h>
#include <CCamera.h>

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);
29 changes: 29 additions & 0 deletions src/gtasa/effects/custom/unsorted/SpawnRocket.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "effects/OneTimeEffect.h"

#include <CStreaming.h>
#include <CTimer.h>
#include <CWorld.h>
#include <CProjectileInfo.h>
#include <extensions/ScriptCommands.h>

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);

0 comments on commit 546d892

Please sign in to comment.