add other bomb cart models
This commit is contained in:
parent
553d3ecc92
commit
5a811cb42e
@ -36,6 +36,8 @@ CatCommand do_lagexploit("se_do", "Sequence exploit (for use in scripts)",
|
|||||||
int exticks = 0;
|
int exticks = 0;
|
||||||
const model_t *point = nullptr;
|
const model_t *point = nullptr;
|
||||||
const model_t *point2 = nullptr;
|
const model_t *point2 = nullptr;
|
||||||
|
const model_t *point3 = nullptr;
|
||||||
|
const model_t *point4 = nullptr;
|
||||||
void AddExploitTicks(int ticks)
|
void AddExploitTicks(int ticks)
|
||||||
{
|
{
|
||||||
exticks = std::max(ticks, exticks);
|
exticks = std::max(ticks, exticks);
|
||||||
@ -209,10 +211,33 @@ void CreateMove()
|
|||||||
if (strstr("models/props_trainyard/bomb_cart.mdl",
|
if (strstr("models/props_trainyard/bomb_cart.mdl",
|
||||||
model_name))
|
model_name))
|
||||||
point2 = model;
|
point2 = model;
|
||||||
else
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
if (!point2)
|
if (!point3)
|
||||||
|
{
|
||||||
|
CachedEntity *pEnt = ENTITY(i);
|
||||||
|
if (!CE_GOOD(pEnt))
|
||||||
|
continue;
|
||||||
|
const model_t *model = RAW_ENT(pEnt)->GetModel();
|
||||||
|
if (!model)
|
||||||
|
continue;
|
||||||
|
const char *model_name = g_IModelInfo->GetModelName(model);
|
||||||
|
if (strstr("models/props_2fort/trainwheel001.mdl",
|
||||||
|
model_name))
|
||||||
|
point3 = model;
|
||||||
|
}
|
||||||
|
if (!point4) {
|
||||||
|
CachedEntity *pEnt = ENTITY(i);
|
||||||
|
if (!CE_GOOD(pEnt))
|
||||||
|
continue;
|
||||||
|
const model_t *model = RAW_ENT(pEnt)->GetModel();
|
||||||
|
if (!model)
|
||||||
|
continue;
|
||||||
|
const char *model_name = g_IModelInfo->GetModelName(model);
|
||||||
|
if (strstr("models/custom/dirty_bomb_cart.mdl",
|
||||||
|
model_name))
|
||||||
|
point4 = model;
|
||||||
|
}
|
||||||
|
if (!point2 && !point3 && !point4)
|
||||||
continue;
|
continue;
|
||||||
CachedEntity *pEnt = ENTITY(i);
|
CachedEntity *pEnt = ENTITY(i);
|
||||||
if (!CE_GOOD(pEnt))
|
if (!CE_GOOD(pEnt))
|
||||||
@ -222,7 +247,7 @@ void CreateMove()
|
|||||||
const model_t *model = RAW_ENT(pEnt)->GetModel();
|
const model_t *model = RAW_ENT(pEnt)->GetModel();
|
||||||
if (!model)
|
if (!model)
|
||||||
continue;
|
continue;
|
||||||
if (model == point2)
|
if (model == point2 || model == point3 || model == point4)
|
||||||
{
|
{
|
||||||
if (!CE_GOOD(LOCAL_E))
|
if (!CE_GOOD(LOCAL_E))
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user