|
new Floatrigin[3]
entity_get_vector(old_bomtarget, EV_VEC_origin, origin)
new bombtarget = create_entity("func_bomb_target")
if(bombtarget > 0)
{
DispatchKeyValue(bombtarget, "classname", "func_bomb_target")
DispatchSpawn(bombtarget)
entity_set_size(bombtarget, Float:{-1000000.0,-1000000.0,-1000000.0}, Float:{1000000.0,1000000.0,1000000.0})
entity_set_string(bombtarget, EV_SZ_classname, "func_bomb_target")
entity_set_origin(bombtarget, origin)
g_bombEnts[0] = bombtarget
}
bombtarget = create_entity("info_bomb_target")
if(bombtarget > 0)
{
DispatchKeyValue(bombtarget, "classname", "info_bomb_target")
DispatchSpawn(bombtarget)
entity_set_size(bombtarget, Float:{-1000000.0,-1000000.0,-1000000.0}, Float:{1000000.0,1000000.0,1000000.0})
entity_set_string(bombtarget, EV_SZ_classname, "info_bomb_target")
entity_set_origin(bombtarget, origin)
g_bombEnts[1] = bombtarget
}
}
}
|
|