void Newbyte(int Address,int nb)
{
for (int i = 0; i <= nb; i++)
{
*(char*)(Address + (i)) = 0x00;
}
}
opd_s unlinkent = { 0x003FA588, TOC };
void(*SV_UnlinkEntity)(int Entity) = (void(*)(int))&unlinkent;
opd_s SL_GetString_t = { 0x5B99C8, TOC };
int(*SL_GetString)(const char* str, unsigned int user, scriptInstance_t inst) = (int(*)(const char*, unsigned int, scriptInstance_t))&SL_GetString_t;
void Delete(int offset, int id, int size = 0)
{
switch(offset)
{
case 0x12AB290:size = 0x2F8;SV_UnlinkEntity((offset + (id * size)));break;
case 0x11F26D4:size = 0x7C;break;
case 0x013950C8:size = 0x2A38;break;
default:break;
}
Newbyte((offset + (id * size)),size);
}
void DeleteDeathBarriers()
{
short test = SL_GetString("trigger_hurt",0,SC
TINSTANCE_SERVER);
for(int g = 0;g < 0x3FF;g++)
{
if(*(short*)(0x12AB290 +(g *0x2F
+ 0x164) == test)
{
Delete(0x12AB290,g);
sleep(500);
}
}
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.