mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-20 16:49:22 +00:00
CHeli and CRopes done
This commit is contained in:
parent
7fea567eb2
commit
90fdc4328b
7 changed files with 314 additions and 50 deletions
31
src/core/Ropes.h
Normal file
31
src/core/Ropes.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
|
||||
class CRope
|
||||
{
|
||||
public:
|
||||
bool m_bActive;
|
||||
bool m_bWasRegistered;
|
||||
bool m_unk;
|
||||
uintptr m_id;
|
||||
uint32 m_updateTimer;
|
||||
CVector m_pos[32];
|
||||
CVector m_speed[32];
|
||||
|
||||
void Update(void);
|
||||
void Render(void);
|
||||
};
|
||||
|
||||
class CRopes
|
||||
{
|
||||
static CRope aRopes[8];
|
||||
|
||||
public:
|
||||
|
||||
static void Init(void);
|
||||
static void Update(void);
|
||||
static void Render(void);
|
||||
static bool RegisterRope(uintptr id, CVector pos, bool setUpdateTimer);
|
||||
static void SetSpeedOfTopNode(uintptr id, CVector speed);
|
||||
static bool FindCoorsAlongRope(uintptr id, float t, CVector *coors);
|
||||
static bool CreateRopeWithSwatComingDown(CVector pos);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue