Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Meteor Shower


Post New Thread Reply   
 
Thread Tools Display Modes
panxiaohai
Senior Member
Join Date: Mar 2010
Old 08-30-2010 , 01:59   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #31

Quote:
Originally Posted by EnviZiado View Post
Hi, nice plugin, works ok but i have some questions

1-In console appears this "Got a NaN velocity on tank_rock" or something like

2-How can i translate the "StarFall over" that appears on chat to "Lluvia de meteoritos terminada"?
Please download the latest version.
panxiaohai is offline
DJ_WEST
Senior Member
Join Date: Jul 2005
Location: Russian Federation
Old 08-30-2010 , 03:20   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #32

Nice to know that the function OnGroundUnits someone needs (from my Incapped Grenade plugin) =)
Btw, nice idea.
__________________
DJ_WEST is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 08-30-2010 , 05:05   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #33

Quote:
Originally Posted by DJ_WEST View Post
Nice to know that the function OnGroundUnits someone needs (from my Incapped Grenade plugin) =)
Btw, nice idea.
Yes, it is from your incapped grenade plugin, My Grenade launcher for shotgun plugin is also spirit from you, thank you.
panxiaohai is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 08-30-2010 , 18:08   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #34

Works flawlessly on my server. Nice plugin!
__________________
M249-M4A1 is offline
help_im_upside_down
Junior Member
Join Date: Feb 2010
Location: New York City
Old 08-31-2010 , 02:34   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #35

Very FUN plugin. Just tested it on my server, think imma leave it on for a while, until some people start complaining bout the noise and to many explosions. A+ work though
__________________
Join my Steam Group for access to my L4D/L4D2 Achievement Server

Search CS GIRLS IN NYC
help_im_upside_down is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 09-03-2010 , 17:45   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #36

26 compile warnings o_O
what happens here? you use "i" in 2 loops.
Code:
if(!left && over)
    {
        Rain[userid][0]=0;
        for(new i=1; i<=c && i<150; i++)
        {
            new ent=Rain[userid][i];
            for(new i=1; i<=c && i<150; i++)
            {
                new ent=Rain[userid][i];
                if(IsRock(ent))
                {
                    
                    RemoveEdict(ent);
                }
                Rain[userid][i]=0;
            }
        }
Skorpion1976 is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 09-03-2010 , 20:41   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #37

Quote:
Originally Posted by Skorpion1976 View Post
26 compile warnings o_O
what happens here? you use "i" in 2 loops.
Code:
if(!left && over)
    {
        Rain[userid][0]=0;
        for(new i=1; i<=c && i<150; i++)
        {
            new ent=Rain[userid][i];
            for(new i=1; i<=c && i<150; i++)
            {
                new ent=Rain[userid][i];
                if(IsRock(ent))
                {
                    
                    RemoveEdict(ent);
                }
                Rain[userid][i]=0;
            }
        }
Thank you, It 's a very serious error caused by copy and paste operation.
It is should be :
Code:
if(!left && over)
    {
        Rain[userid][0]=0;
        for(new i=1; i<=c && i<150; i++)
        {            
            new ent=Rain[userid][i];
            if(IsRock(ent))
            {
                
                RemoveEdict(ent);
            }
            Rain[userid][i]=0;
             
        }
        CloseHandle(h);
    
        return Plugin_Stop;
    }
panxiaohai is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 09-04-2010 , 15:12   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #38

Quote:
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(11 : warning 204: symbol is assigned a value that is never used: "client"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(172) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(173) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(174) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(179) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(182) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(213) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(214) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(215) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(215) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(216) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(216) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(269) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(271) : warning 219: local variable "ent" shadows a variable at a preceding level
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(26 : warning 204: symbol is assigned a value that is never used: "ent"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(557) : warning 225: unreachable code
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(521) : warning 204: symbol is assigned a value that is never used: "ent3"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(520) : warning 204: symbol is assigned a value that is never used: "ent2"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(694) : warning 203: symbol is never used: "CopyVector"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(694) : warning 203: symbol is never used: "GetRayDistance"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(694) : warning 203: symbol is never used: "GetRayHitPos"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(694) : warning 203: symbol is never used: "IfTwoPosVisible"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(694) : warning 203: symbol is never used: "ShowLarserByAngle"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(694) : warning 203: symbol is never used: "ShowLarserByAngleAndDistance"
/home/groups/sourcemod/upload_tmp/phpzzobd7.sp(694) : warning 203: symbol is never used: "ShowLarserByPos"
You should fix this.......
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 09-05-2010 , 03:00   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #39

Quote:
Originally Posted by andi67 View Post
You should fix this.......
Thank you , It is still in development.
panxiaohai is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 09-05-2010 , 05:17   Re: [L4D & L4D2] Meteor Shower
Reply With Quote #40

Hi
Crazy stuff, seriously! We finally got it working, well, sometimes.
We run a 9vs9 windows server and we use the !buy plugin where you can buy tanks and witches. Because we have LOTS of witches on 1 map we had to lower the witch cvar values. But they work. I am glad they work because for tank itīs not working properly

1.
Itīs not working for tank all the time, even if we comment this line out
Code:
//if(GetRandomFloat(0.0, 100.0)< GetConVarFloat(l4d_star_tank))
By commenting this the code SHOULD force the engine to create meteorites but they almost never appear. Maybe itīs got something to do with the "2000" and "1600" and ">500" values?
We tried to replace this code
Code:
public Action:tank_killed(Handle:hEvent, const String:strName[], bool:DontBroadcast)
{
    //if(GameMode==2)return;
    new victim = GetClientOfUserId(GetEventInt(hEvent, "userid"));
    if(GetRandomFloat(0.0, 100.0)< GetConVarFloat(l4d_star_tank)) StartStarFall(victim);
}
with this
Code:
public Action:tank_killed(Handle:hEvent, const String:strName[], bool:DontBroadcast)
{
    //if(GameMode==2)return;
    new killer = GetClientOfUserId(GetEventInt(hEvent, "attacker"));
    if(GetRandomFloat(0.0, 100.0)< GetConVarFloat(l4d_star_tank)) StartStarFall(killer);
}
"killer" is just cosmetic for better understanding but "attacker" now is the tank killer, not tank itself. Like in the same code for witch some lines below in the code. For witch your code is working but not for tank, neither your version, nor ours.

2.
erm...? I deleted this as it seems you prepared something in the code but havenīt finished it yet.
Code:
public OnConfigExecuted()
{
    Set();
}
Set()
{
 
}
public CvarChanged(Handle:convar, const String:oldValue[], const String:newValue[])
{
    Set();
}
3. What is "pos" and "hitpos" ?
You limit the "dis" to "1600" if the distance between pos and hitpos is > 2000.
4. Why 1600 ?
5. Why do you check for "> 2000" ?
6. If you load this plugin with "sm plugins load xxxx" --> does it work immediately after getting loaded or do I have to perform a mapchange ? I am asking because you set "new gamestart=false;" during "OnPluginStart", which is the same as "round_end" from what I īve seen.
7. In the function "ExplodeStar" you write "return;" and after this you wrote the code which you push the survivors away with. This code does not get executed and the compiler shows that too: "(557) : warning 225: unreachable code"
Did you want to prevent any bug by exiting this function or did you forget to add an IF statement prior to "return;" ?
From what I can tell the push code seems to work, we deleted the "return;" once and they flew around the area

Please keep updating this one, you have great ideas and this is some crazy stuff I want to keep on the server
Skorpion1976 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 09:28.


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