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

[EXTENSION] Sidewinder


Post New Thread Reply   
 
Thread Tools Display Modes
naris
AlliedModders Donor
Join Date: Dec 2006
Old 09-22-2009 , 19:17   Re: [EXTENSION] Sidewinder
Reply With Quote #181

Quote:
Originally Posted by TheSpyHunter View Post
Is there an option to enable/ disable it on a player..

On Command:
sm_rocket_homing 1 @me/@blue/@red/@all
Off Command
sm_rocket_homing 0 @me/@blue/@red/@all
There are native functions that plugins can call to enable/disable tracking projectiles per client in the version I posted (which is how we use it).

The native functions are defined in the sidewinder.inc file included in Post 88 --> http://forums.alliedmods.net/showpos...2&postcount=88

However, there aren't any convars or commands for doing so.
naris is offline
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 09-23-2009 , 22:09   Re: [EXTENSION] Sidewinder
Reply With Quote #182

Thanks Naris, you have to excuse my "noobishness"..

How do I call the @ in game?
would it be like this?
sm_sidewinder_enable @me 1/2/4
__________________
TheSpyHunter is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 09-24-2009 , 00:39   Re: [EXTENSION] Sidewinder
Reply With Quote #183

Quote:
Originally Posted by TheSpyHunter View Post
sm_sidewinder_enable @me 1/2/4
I already said no, that's NOT how it's called.

Quote:
Originally Posted by naris View Post
There are native functions that plugins can call.. However, there aren't any convars or commands for doing so.
You have to call the Native Functions defined in the specified include file from a plugin.

Here is an example function to set the flags for a given client:
PHP Code:
#include "sidewinder"

SetupSidewinder(clientlevelbool:seeker)
{
        new 
SidewinderClientFlags:flagscrit_chancetrack_chance;

        if (
seeker)
        {
            
track_chance 100;
            
flags TrackingSentryRockets TrackingRockets TrackingArrows |
                    
TrackingFlares TrackingPipes TrackingSyringe;
        }
        else
        {
            
track_chance 0;

            if (
level <= 0)
            {
                
flags NormalSentryRockets NormalRockets NormalArrows |
                        
NormalFlares NormalPipes NormalSyringe;
            }
            else
            {
                
flags CritSentryRockets CritTrackerSentryRockets CritTrackerRockets |
                        
CritTrackerArrows CritTrackerFlares CritTrackerPipes CritTrackerSyringe;
            }
        }

        switch (
level)
        {
            case 
1:  crit_chance 5;
            case 
2:  crit_chance 10;
            case 
3:  crit_chance 25;
            case 
4:  crit_chance 50;
            default: 
crit_chance 0;
        }

        
SidewinderFlags(clientflagsfalse);
        
SidewinderTrackChance(clienttrack_chance);
        
SidewinderSentryCritChance(clientcrit_chance);


Last edited by naris; 09-24-2009 at 00:45.
naris is offline
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 09-24-2009 , 06:13   Re: [EXTENSION] Sidewinder
Reply With Quote #184

Hi Naris,

I still dont fully understand.

I installed your version from #88, rockets/arrows etc dont home.

When sentry fires crit rockets it crashes.

On a Linux server running SM 1.23
__________________
TheSpyHunter is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 09-24-2009 , 16:33   Re: [EXTENSION] Sidewinder
Reply With Quote #185

Quote:
Originally Posted by TheSpyHunter View Post
I still dont fully understand.
http://wiki.alliedmods.net/Introduction_to_SourcePawn
http://wiki.alliedmods.net/Introduct...rceMod_Plugins
http://wiki.alliedmods.net/Natives_%...Development%29

Last edited by naris; 09-24-2009 at 16:38.
naris is offline
Pacmaney
Senior Member
Join Date: May 2009
Old 10-02-2009 , 19:39   Re: [EXTENSION] Sidewinder
Reply With Quote #186

How exactly do the last two cvars work?
__________________
Pacmaney is offline
olli
Junior Member
Join Date: Sep 2009
Old 10-21-2009 , 07:54   Re: [EXTENSION] Sidewinder
Reply With Quote #187

edit: nvm it's working now.

Last edited by olli; 10-21-2009 at 07:56.
olli is offline
Matheus28
Senior Member
Join Date: Aug 2009
Old 11-01-2009 , 12:44   Re: [EXTENSION] Sidewinder
Reply With Quote #188

The homing function isn't working!

Last edited by Matheus28; 11-02-2009 at 11:45.
Matheus28 is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 11-15-2009 , 15:01   Re: [EXTENSION] Sidewinder
Reply With Quote #189

I'm getting crashes (when the rockets fire), compiling the tip sidewinder with the tip centity. Are there any compatibility issues (on linux)?

Last edited by pheadxdll; 11-15-2009 at 16:04.
pheadxdll is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 12-09-2009 , 15:56   Re: [EXTENSION] Sidewinder
Reply With Quote #190

Oh OK. I have the same issue ever since I attempted to merge pRED*'s code from the tip into my version of the extension.

I assumed I must of hosed something up and haven't had the time to fully research it...
naris 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 05:02.


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