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

Stripper:Source (Updated 2011-04-15)


Post New Thread Reply   
 
Thread Tools Display Modes
Wiskyjim
Junior Member
Join Date: Mar 2010
Old 06-01-2010 , 13:05   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #691

Here is a simple plugin to add ingame spawnpoints for stripper:source.

Click on the Spawn Creator.
__________________

Wiskyjim is offline
n3wton
Senior Member
Join Date: Mar 2010
Old 06-11-2010 , 04:55   Remove func_playerinfected_clip on L4D2
Reply With Quote #692

I've tried using a plugin to remove the func_playerinfected_clip entity on l4d2 and it works for some of them but not all of them... so I thought I'd try using stripper, so I wrote this...

Code:
modify:
{
    match:
    {
    "classname" "func_playerinfected_clip"
    }
    delete:
    {
    "classname" "func_playerinfected_clip"
    }
}
but this crashes out l4d2 on map start...

any ideas?

Yours
N3wton
n3wton is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 06-11-2010 , 10:29   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #693

Try using "filter" instead of "modify," as filter will delete any and all entities that it matches, while modify is really meant for modifying the existing entities and creating new ones, rather than deleting them.

Quote:
filter:
{
"classname" "func_playerinfected_clip"
}
__________________
thetwistedpanda is offline
flud
Senior Member
Join Date: Jun 2009
Location: Latvija
Old 06-11-2010 , 10:44   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #694

sup guys, need little help, tnx Wiskyjim for plugin i use your code, this is main function.

PHP Code:
SaveAllEntities(Client)
{
    new 
Float:iVec[3];
    new 
Float:iAng[3];

    new 
String:m_ModelName[255];
    new 
String:map[64];
    
GetCurrentMap(mapsizeof(map));
        
    new 
String:path[255];
    
Format(pathsizeof(path), "addons/stripper/maps/%s.cfg"map);
    
    new 
Handle:file OpenFile(path"wt");
    if (
file == INVALID_HANDLE)
    {
        
LogError("Could not open spawn point file \"%s\" for writing."path);
        return 
false;
    }
    
WriteFileLine(file"add:");
    
PrintToChat(Client"ShitStorm start");
    for( new 
0GetArraySize(h_arraySpawnedItems[Client]); i++ )
    {
        new 
ent GetArrayCellh_arraySpawnedItems[Client], i);
        if( 
IsValidEntity(ent))
        {
            
GetEntPropVector(entProp_Data"m_vecOrigin"iVec);
            
GetEntPropVector(entProp_Data"m_angRotation"iAng);
            
GetEntPropString(entProp_Data"m_ModelName"m_ModelNamesizeof(m_ModelName));
        
            
PrintToChat(Client"[%f %f %f][%f %f %f]",iVec[0],iVec[1],iVec[2],iAng[0],iAng[1],iAng[2]);
            
WriteFileLine(file"{");
            
WriteFileLine(file"\"origin\" \"%f %f %f\""
                
iVec[0],
                
iVec[1],
                
iVec[2]);
            
WriteFileLine(file"\"angles\" \"%f %f %f\"",
                
iAng[0],
                
iAng[1],
                
iAng[2]);
            
WriteFileLine(file"\"classname\" \"prop_physics\"");
            
WriteFileLine(file"\"model\" \"%s\"",
                
m_ModelName);
            
WriteFileLine(file"}");
        }
    }
    
    
CloseHandle(file);
    
PrintToChat(Client"ShitStorm [%i]",GetArraySize(h_arraySpawnedItems[Client]));
    return 
true;

so this function save config file for stripper
Code:
add:
{
"origin" "-680.252258 -601.501403 0.031250"
"angles" "0.000000 0.168284 0.000000"
"classname" "prop_physics"
"model" "models\props_fortifications/concrete_wall001_96_reference.mdl"
}
{
"origin" "-680.422485 -543.650878 0.031250"
"angles" "0.000000 0.168284 0.000000"
"classname" "prop_physics"
"model" "models\props_fortifications/concrete_wall001_96_reference.mdl"
}
looks like it's working but props not spawn when i reload map
and i don't get why, can you guys help me fix the problem
__________________
Beware of a terrible language
flud is offline
Send a message via Skype™ to flud
triggerman
Senior Member
Join Date: Jun 2009
Old 06-11-2010 , 14:13   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #695

Make sure what you are trying to spawn is a physics prop. If it isnt then you will need to use "prop_dynamic" for the classname instead.

Im going to guess that a concrete wall is a dynamic prop.
__________________
triggerman is offline
n3wton
Senior Member
Join Date: Mar 2010
Old 06-11-2010 , 16:26   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #696

used

filter:
{
"classname" "func_playerinfected_clip"
}

on l4d2 and taht does remove them, but I'm guessing theres something else that needs removing as just behind the func_playerinfected_clip you get stopped again

Yours
N3wton
n3wton is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 06-11-2010 , 16:28   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #697

you cant go everywhere - there are invisible brushes (which cant be removed) all over the maps.
dirka_dirka is offline
n3wton
Senior Member
Join Date: Mar 2010
Old 06-11-2010 , 17:55   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #698

How stupid oh well]

Cheers

Yours
N3wton
n3wton is offline
BAILOPAN
Join Date: Jan 2004
Old 06-13-2010 , 21:55   Re: Stripper:Source (Works on L4D2, TF, DoD:S again)
Reply With Quote #699

Mac version is now available.
__________________
egg
BAILOPAN is offline
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 06-15-2010 , 13:49   Re: Stripper:Source (Mac support added)
Reply With Quote #700

Why were the Windows and Linux versions reuploaded (assuming they were by the DL count). Anything changed within those packages?
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
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 22:03.


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