Ładowanie...

Multiplayer Respawn in SP v1.4 (MP, Custom maps, Bugs fixed)

Pobierz
1ce552 mpres
F09410 spawnnears

1 989

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:
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

Dodano: luty 27, 2024
Ostatnia aktualizacja: 23 hours ago
Last Downloaded: 12 minut temu

All Versions

 v1.5 (Loud buggy sound fixed)

23 pobrań , 105 KB
23 hours ago

 v1.4 (MP, Custom maps, Bugs fixed) (current)

726 pobrań , 106 KB
październik 01, 2024

 v1.3 (Bug when player died just before respawn transition)

582 pobrań , 112 KB
maj 20, 2024

 v1.2 (Respawn more faster)

478 pobrań , 79 KB
luty 29, 2024

 v1.1 (Custom maps, use this if v1.2 doesn't work)

157 pobrań , 79 KB
luty 27, 2024

45 Komentarzy