Raised This Month: $ Target: $400
 0% 

[L4D2] Nuke - Timer Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 07-24-2022 , 12:55   Re: [L4D2] Nuke - Timer Issue
Reply With Quote #1

After testing couple of times, the explosion is not starting but only sound effects + slaying

and these errors

PHP Code:
L 07/24/2022 19:49:33: [SMException reportedClient index 0 is invalid
L 07
/24/2022 19:49:33: [SMBlamingl4d2_nuke 1.1.1.smx
L 07
/24/2022 19:49:33: [SMCall stack trace:
L 07/24/2022 19:49:33: [SM]   [0GetClientAbsOrigin
L 07
/24/2022 19:49:33: [SM]   [1Line 171, /home/forums/content/files/2/5/6/7/1/3/195924.attach::Timer_Strike 
I will try to work it out later at night, thank you Grey83

Last edited by alasfourom; 07-24-2022 at 14:49.
alasfourom is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 07-24-2022 , 16:36   Re: [L4D2] Nuke - Timer Issue
Reply With Quote #2

Quote:
Originally Posted by alasfourom View Post
PHP Code:
L 07/24/2022 19:49:33: [SMException reportedClient index 0 is invalid 
PHP Code:
public Action Timer_Strike(Handle timerany client)
{
    
float radius 1.0pos[3];
    for(
int i 1<= MaxClientsi++) if(IsClientSurvivor(ifalse))
    {
        
GetClientAbsOrigin(clientpos);
        
pos[0] += GetRandomFloat(radius*-1radius);
        
pos[1] += GetRandomFloat(radius*-1radius);
        
CreateExplosion(pos);
    }
    return 
Plugin_Continue;

==>
PHP Code:
public Action Timer_Strike(Handle timer)
{
    
float radius 1.0pos[3];
    for(
int i 1<= MaxClientsi++) if(IsClientSurvivor(ifalse))
    {
        
GetClientAbsOrigin(ipos);
        
pos[0] += GetRandomFloat(radius*-1radius);
        
pos[1] += GetRandomFloat(radius*-1radius);
        
CreateExplosion(pos);
    }
    return 
Plugin_Continue;

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_nuke 1.1.1.sp - 69 views - 8.3 KB)
__________________

Last edited by Grey83; 07-24-2022 at 16:37.
Grey83 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 00:58.


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