Đang tải...

Multiplayer Respawn in SP 1.6 (FINAL)

2.115

MP Respawn adds the respawn feature in Multiplayer to Singleplayer.
This mod don't contains bugs, report me if that contains!
MP Respawn can change his respawn position for any mod, that means you can do mission and when failed he respawn a certain point! Watch below for the code!

Log update:
TOTAL REVAMP of the mod, the code is brand new with radar enabled!
New spawn system (from MP)
Allowed respawn point at custom maps!

For Custom Model:
It isn't the mod's fault, some mods like Menyoo remove the custom model!


Requirements:
- Script Hook V

Bugs rules:
- No other respawn mod installed!

Credit: This mod includes a little feature, it's up to you to credit me or not.

Mod friendly code:

class DVector3 {
public:
Vector3 a = Vector3(0, 0, 0);
Vector3 b = Vector3(0, 0, 0);
DVector3() {};
DVector3(Vector3 _a, Vector3 _b) {
a = _a;
b = _b;
}
DVector3(float x, float y, float z, float x2, float y2, float z2) {
a = Vector3(x, y, z);
b = Vector3(x2, y2, z2);
}
};
vector RespawnPoints;
bool RespawnPointIsPlayerKilled = false;
void AddRespawnPoint(DVector3 Point) {
RespawnPoints.push_back(Point);
}
void ClearRespawnPoints() {
RespawnPoints.clear();
}
void RespawnPointTick() {
if (RespawnPointIsPlayerKilled) {
if (IS_SCREEN_FADING_IN()) {
RespawnPointIsPlayerKilled = false;

if (RespawnPoints.size()) {
DVector3 RDNRespawnPoint = RespawnPoints[TOOLS::GetRandomInt(0, RespawnPoints.size() - 1)];

WAIT(10);

SetPlayerPos(RDNRespawnPoint.a);
SetPlayerRot(RDNRespawnPoint.b);

FORCE_ALL_HEADING_VALUES_TO_ALIGN(PLAYER_PED_ID());
}
}
}
else {
if (IsEntityDead(PLAYER_PED_ID()))
RespawnPointIsPlayerKilled = true;
}
}
Show Full Description

Tải lên lần đầu: 27 Tháng hai, 2024
Cập nhật lần cuối: 4 ngày trước
Last Downloaded: 1 hours ago

All Versions

 1.6 (FINAL) (current)

97 tải về , 100 KB
4 ngày trước

59 Bình luận