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

Subplugin Submission [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)


Post New Thread Reply   
 
Thread Tools Display Modes
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 03-05-2012 , 15:20   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #381

In the first place, the entity should be the flashbang (becouse the hegrenade is already defined as infection bomb and it could make some problems togeather)

PHP Code:
new const gWeaponCommand [] = "weapon_flashbang";
new const 
gWeaponIndex      CSW_FLASHBANG
2. All the snarks should be removed on round end, becoude there were crash on the new round when the snark was still on the map

PHP Code:
public zp_round_ended(){
    new 
Snark = -1;
        
    while ( ( 
Snark find_ent_by_classSnarkgSnarkClassName ) ) != NULL_ENT )
    {
        
CSqueak_Killed Snark0false );
    }
        
    for ( new 
Player 1Player <= gMaxClientsPlayer++ )
    {
        
CheckAndRemoveWeapon Player );
        
gHasSnarkPlayer } = false;
    }

3.

PHP Code:
public fw_PlayerKilled(victimattackershouldgib)
{
    
//player die
    
is_alive[victim] = false
    
    
if (gHasSnark    victim })
        
CheckAndRemoveWeapon victim ); 
    
    
gHasSnark    victim } = false;
    
gWeaponActivevictim } = false;
    
gJustThrown  victim } = false;
    
gPlayerAmmo  victim } = get_pcvar_numpCvarAmmo );

3. This should be removed (the whole radius damage in the plugin, it caused some problems...) :

PHP Code:
stock UTIL_RadiusDamage 
I solved this plugin for about a year ago and I do not remember exactly how it was, but the things I wrote here, should be helpful.
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 03-14-2012 , 16:31   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #382

You need to make the Snarks clear when the round ends. Otherwise someone gets infected in the next round before the game mode has even started.
Gam3ronE is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 03-16-2012 , 15:26   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #383

BUMP! Anyone make the extra item clear when a new round starts please! Thank you. Epic plugin, just needs some fixing.
Gam3ronE is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 03-16-2012 , 15:32   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #384

That wont help still message owerflow.
__________________
H.RED.ZONE is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 03-16-2012 , 15:44   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #385

Okay then if you can't make all the snarks die when the round ends, then have an option to make snarks only able to do damage and not infect Or only able to infect for X amount of time (until new round / round end) then they just do damage. That way you could set they can infect on rounds only. Not round starts. At the moment snarks just infect you before a game mode which messes up the game.
Gam3ronE is offline
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 03-17-2012 , 06:52   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #386

this makes all the snarks clear at the round end:

PHP Code:
public zp_round_ended(){
    new 
Snark = -1;
        
    while ( ( 
Snark find_ent_by_classSnarkgSnarkClassName ) ) != NULL_ENT )
    {
        
CSqueak_Killed Snark0false );
    }
        
    for ( new 
Player 1Player <= gMaxClientsPlayer++ )
    {
        
CheckAndRemoveWeapon Player );
        
gHasSnarkPlayer } = false;
    }

zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
last_hope
Senior Member
Join Date: Dec 2011
Old 05-23-2012 , 05:32   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #387

Any chance run this on zp5?
last_hope is offline
Send a message via ICQ to last_hope
artos
Senior Member
Join Date: Mar 2010
Old 06-09-2012 , 19:06   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #388

Quote:
Originally Posted by last_hope View Post
Any chance run this on zp5?
This one works well. I tested it for 30 minutes with no crash.

http://forums.alliedmods.net/showpos...&postcount=359
__________________
artos is offline
Send a message via Skype™ to artos
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-10-2012 , 06:27   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #389

Problem is if victim have armor then snarks infect instantly.
__________________
naSTR is offline
artos
Senior Member
Join Date: Mar 2010
Old 06-10-2012 , 06:51   Re: [ZP] Extra Item:Snark Infector (UPDATE 14.06.09)
Reply With Quote #390

Quote:
Originally Posted by naSTR View Post
Problem is if victim have armor then snarks infect instantly.
I didn't notice this problem. If victim have an armor ,snarks are decreasing his armor first, then infect him.
__________________
artos is offline
Send a message via Skype™ to artos
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 06:46.


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