Raised This Month: $51 Target: $400
 12% 

Is it posible to spawn func_physbox brush?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 05-04-2015 , 10:29   Is it posible to spawn func_physbox brush?
Reply With Quote #1

Already tried this and the server crashed

Any ideas? its posible?

PHP Code:
public Action:Command_spawnhint7(clientargs
{
    new 
Float:playerpos[3];
    
GetEntPropVector(clientProp_Send"m_vecOrigin"playerpos);

    new 
entindex CreateEntityByName("func_physbox");
    if (
entindex != -1//dispatch ent properites
    
{
//        DispatchKeyValue(entindex, "affectsFlow", "1");
        
DispatchKeyValue(entindex"spawnflags""64");
    }

    
DispatchSpawn(entindex);
    
ActivateEntity(entindex);

    
TeleportEntity(entindexplayerposNULL_VECTORNULL_VECTOR);

//    PrecacheModel("models/player/items/pyro/drg_pyro_fueltank.mdl");
//    SetEntityModel(entindex, "models/player/items/pyro/drg_pyro_fueltank.mdl");

    
new Float:minbounds[3] = {-100.0, -100.00.0};
    new 
Float:maxbounds[3] = {100.0100.0200.0};
    
SetEntPropVector(entindexProp_Send"m_vecMins"minbounds);
    
SetEntPropVector(entindexProp_Send"m_vecMaxs"maxbounds);
    
    
SetEntProp(entindexProp_Send"m_nSolidType"2);

    new 
enteffects GetEntProp(entindexProp_Send"m_fEffects");
    
enteffects |= 32;
    
SetEntProp(entindexProp_Send"m_fEffects"enteffects);
    
PrintToChatAll("Created the func_physbox");
    return 
Plugin_Handled;

__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 05-04-2015 , 15:41   Re: Is it posible to spawn func_physbox brush?
Reply With Quote #2

try setting a model with SetEntityModel
__________________

Last edited by Chdata; 05-04-2015 at 15:41.
Chdata is offline
Reply



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 21:53.


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