Raised This Month: $ Target: $400
 0% 

Infinite roundtime, remove bombsites


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hzqst
Senior Member
Join Date: Jul 2008
Old 12-20-2008 , 20:40   Re: Infinite roundtime, remove bombsites
Reply With Quote #2

why not using fakemeta?..

Quote:
new Float:g_BombSites_origin[3]
new Float:g_BombSites_mins[3]
new Float:g_BombSites_maxs[3]

public create_bs() {
new ent
ent = engfunc(EngFunc_CreateNamedEntity, engfunc (EngFunc_AllocString, "info_bomb_target"))
if(pev_valid(ent))
set_pev(ent, pev_origin, g_BombSites_oigin)
dllfunc(DLLFunc_Spawn, ent)
}
Quote:
public destroy_bs(){
new ent
while ((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_bomb_target")) != 0)
engfunc(EngFunc_RemoveEntity,ent)
}
and you should know that entity_set_origin doesn't work for brush entity

Quote:
public create_bs_brushent() {//brush entity
new ent
ent = engfunc(EngFunc_CreateNamedEntity, engfunc (EngFunc_AllocString, "func_bomb_target"))
if(pev_valid(ent)){
engfunc(EngFunc_SetSize, ent, g_bombsites_mins, g_bombsites_maxs)
engfunc(EngFunc_SetOrigin, ent, g_bombsites_origin)
dllfunc(DLLFunc_Spawn, ent)
}
}

Last edited by hzqst; 12-20-2008 at 20:48.
hzqst is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode