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

[EXTENSION] Sidewinder


Post New Thread Reply   
 
Thread Tools Display Modes
Cooltad
Veteran Member
Join Date: Apr 2008
Old 05-12-2009 , 04:05   Re: [EXTENSION] Sidewinder
Reply With Quote #81

Quote:
Originally Posted by pRED* View Post
Can't you add multiple commands separated by ; in the custom admin menu..
I'm not sure you can. I've always had to use separate configs. I may try it later and see, but there isn't anything in the documentation for it.
__________________
Please, give me some rep if you found what I posted useful. :]
Cooltad is offline
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 05-12-2009 , 05:54   Re: [EXTENSION] Sidewinder
Reply With Quote #82

Ah well, cheers for the info, either way it was good practice for me

Last edited by Wazz; 05-17-2009 at 18:14.
Wazz is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 05-22-2009 , 08:01   Re: [EXTENSION] Sidewinder
Reply With Quote #83

The recent update broke the offsets for this.
__________________
Please, give me some rep if you found what I posted useful. :]
Cooltad is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 05-22-2009 , 12:08   Re: [EXTENSION] Sidewinder
Reply With Quote #84

Actually, the offsets are in CEntity., which does indeed need to be updated.
naris is offline
pRED*
Join Date: Dec 2006
Old 05-23-2009 , 21:37   Re: [EXTENSION] Sidewinder
Reply With Quote #85

New build forced with fixed offsets.
pRED* is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 05-30-2009 , 18:03   Re: [EXTENSION] Sidewinder
Reply With Quote #86

Since the TF2 update, it doesn't seem to work. Maybe because of the existence of mini-crits?
Nevermind..For a second it seemed like it wouldn't enable in real-time..
__________________
Please, give me some rep if you found what I posted useful. :]

Last edited by Cooltad; 05-30-2009 at 18:22.
Cooltad is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 06-06-2009 , 16:24   Re: [EXTENSION] Sidewinder
Reply With Quote #87

I have enhanced the Sidewinder extension to also allow rockets (soldier), grenades, arrows, flares, needles and syringes to be configured to be tracking projectiles, with convars for each one.

I also added native functions that can be called from plugins to enable or disable the various homing projectiles for individual players. There are also bits in the sidewinder flags to allow individual clients to be cloaked from the missiles, detected even if they are cloaked or designated as priority targets.

I have also attached a simple plugin that will reset everyone's sidewinder flags when they connect or disconnect.

6/8/2009 *Updated to change version number to 2.1.1
8/10/2009 *Changed sidewinder crit tracker to use bit flags in 1 convar instead of separate convars (to be consistent)
*Fixed sidewinder crit tracker available to all races bug
*Added forward to Sidewinder when a shot is fired to decide whether it should seek or not.
*Changed sidewinder to call OnSidewinderSweek() from the 1st Think Function when the tracking value is TrackCrits
*Added the critical flag to the OnSidewinderSeek() forward.

List of Convars:
sm_arrow_homingchance (0-100, default 100)
Percent chance that a sniper's arrow will home.

sm_flare_homingchance (0-100, default 100)
Percent chance that a pyro's flare will home

sm_pipe_homingchance (0-100, default 100)
Percent chance that a demo man's pipe bombs (grenades) will home.

sm_rocket_homingchance (0-100, default 100)
Percent chance that a soldier's rockets will home.

sm_syringe_homingchance (0-100, default 100)
Percent chance that a medic's syringe needles will home.

sm_sentryrocket_homingchance (0-100, default 100)
Percent chance that a sentry gun's rockets will home.

sm_sentryrocket_critchance (0-100, default 100)
Percent chance that a sentry gun's rockets will crit.

sm_sentryrocket_crit (1/0, default 1)
Enable/disable critical shots for sentry guns.

sm_sentryrocket_speedmul (Float, default 1.0)
Multiplier used to determine the speed that all projectiles turn at (from original plugin)
(resulting speed = value * 1100.0)

sm_sidewinder_enabled
(flags)
Flags that enable/disable sidewinder for each weapon type

sm_sidewinder_crit_tracker (flags)
Flags that enable/disable crit tracking for each weapon type

The flags used by both sm_sidewinder_enabled and sm_sidewinder_crit_tracker are:
Code:
enum SidewinderEnableFlags (<<= 1)
{
    SidewinderDisabled = 0,     // Completly disable sidewinder
    SidewinderSentry = 1,       // Enable sidewinder sentry rockets
    SidewinderRocket = 2,           // Enable sidewinder soldier rockets
    SidewinderArrow = 4,            // Enable sidewinder huntsman arrows
    SidewinderFlare = 8,            // Enable sidewinder pyro flares
    SidewinderPipe = 16,             // Enable sidewinder demo pipe bombs
    SidewinderSyringe = 32           // Enable sidewinder medic syringes
};
Attached Files
File Type: sp Get Plugin or Get Source (sidewinder.sp - 339 views - 2.0 KB)
File Type: inc sidewinder.inc (6.4 KB, 359 views)
File Type: zip sidewinder.zip (705.9 KB, 339 views)
File Type: zip sidewinder-source.zip (3.57 MB, 291 views)

Last edited by naris; 08-11-2009 at 11:30. Reason: Updated to change version number to 2.1.1
naris is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 06-07-2009 , 19:26   Re: [EXTENSION] Sidewinder
Reply With Quote #88

Quote:
Originally Posted by naris View Post
I have enhanced the Sidewinder extension to also allow rockets (soldier), grenades, arrows, flares, needles and syringes to be configured to be tracking projectiles, with convars for each one.

I also added native functions that can be called from plugins to enable or disable the various homing projectiles for individual players. There are also bits in the sidewinder flags to allow individual clients to be cloaked from the missiles, detected even if they are cloaked or designated as priority targets.

I have also attached a simple plugin that will reset everyone's sidewinder flags when they connect or disconnect.
Code:
[SM] Plugin sidewinder.smx failed to load: Native "SidewinderControl" was not found.
Also, you never said what convars activate each one, and I'd really like to know.
__________________
Please, give me some rep if you found what I posted useful. :]

Last edited by Cooltad; 06-07-2009 at 20:03.
Cooltad is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 06-08-2009 , 01:12   Re: [EXTENSION] Sidewinder
Reply With Quote #89

Quote:
Originally Posted by Cooltad View Post
Also, you never said what convars activate each one, and I'd really like to know.
The convars can be found in the source. They are now documented in post #88
sm_sidewinder_enabled
sm_sentryrocket_crit
sm_sentryrocket_critchance
sm_sentryrocket_homingchance
sm_sentryrocket_crit_tracker
sm_rocket_crit_tracker
sm_rocket_homingchance
sm_pipe_crit_tracker
sm_pipe_homingchance
sm_flare_crit_tracker
sm_flare_homingchance
sm_arrow_crit_tracker
sm_arrow_homingchance
sm_syringe_crit_tracker
sm_syringe_homingchance

Also, the *_crit_track convars configure the appropriate homing projectiles to only track/home when the shot is a crit shot. Set both the*_crit_tracker and *_homingchance variables to 0 to disable tracking/homing for that particular projectile.


Quote:
Originally Posted by Cooltad View Post
Code:
[SM] Plugin sidewinder.smx failed to load: Native "SidewinderControl" was not found.
The plugin requires the new sidewinder extension which, apparently, was not loaded.

Also, the sidewinder.sp plugin disables tracking/homing projectiles for all players when they join and exit the server, so you probably don't want to use it unless you are using the native function to enable them for certain players form some other plugin, which is how I use it (I don't use the convars). If you are using the convars, then you definitely don't want to load the plugin.

The sidewinder.sp plugin would be a good starting place for someone that wanted to enable this for admins, donators or other specific players. The documentation for the native functions are in the sidewinder.inc include file.



Last edited by naris; 08-11-2009 at 11:35.
naris is offline
panda-xuc
Junior Member
Join Date: May 2009
Old 06-08-2009 , 02:27   Re: [EXTENSION] Sidewinder
Reply With Quote #90

@naris: Odd, it recognizes the cvars, but doesn't actually have any effect on the weapons. I'm running Linux.

As for the original extension; is there any way that I can assign this property to an entity in the map, allowing it to spawn rockets?
Should that not be possible, how would I increase the sentry's range?

Also, I wouldn't mind finding out how it is I'm supposed to compile these .cpp and .h files provided in the source to those provided in the releases.

Last edited by panda-xuc; 06-08-2009 at 05:40.
panda-xuc 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:23.


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