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

[L4D & L4D2] Jet Pack


Post New Thread Reply   
 
Thread Tools Display Modes
ricksfishin
Senior Member
Join Date: Oct 2017
Old 02-02-2018 , 02:11   Re: [L4D & L4D2] Jet Pack
Reply With Quote #71

Works
Attached Files
File Type: smx l4d_jetpack.smx (25.3 KB, 258 views)
File Type: sp Get Plugin or Get Source (l4d_jetpack.sp - 615 views - 39.7 KB)
ricksfishin is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 14:38   Re: [L4D & L4D2] Jet Pack
Reply With Quote #72

I use this version that works, perfectly, no need to create or build the jetpack, just use the connection keys.

But the only problem is that I can not change the "flag" to use, by default this is for generic admin, and I wanted to change to only ROOT admin to use.

But it does not compile it shows errors.

I also could not change using admin_overrides. (using the Silvers tip), also did not work.

If anyone has a suggestion or has this plugin only for ROOT flas, thank you for sharing.
Attached Files
File Type: smx jetpack.smx (19.3 KB, 192 views)
File Type: sp Get Plugin or Get Source (jetpack.sp - 431 views - 27.1 KB)
File Type: inc jetpack.inc (4.0 KB, 217 views)
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 10-20-2018 , 17:16   Re: [L4D & L4D2] Jet Pack
Reply With Quote #73

Wrong Aurthor this is panxiaohai,,,you need Aurthor Knagg0.
ricksfishin is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 10-20-2018 , 21:14   Re: [L4D & L4D2] Jet Pack
Reply With Quote #74

Quote:
Originally Posted by Mi.Cura View Post
I use this version that works, perfectly, no need to create or build the jetpack, just use the connection keys.

But the only problem is that I can not change the "flag" to use, by default this is for generic admin, and I wanted to change to only ROOT admin to use.

But it does not compile it shows errors.

I also could not change using admin_overrides. (using the Silvers tip), also did not work.

If anyone has a suggestion or has this plugin only for ROOT flas, thank you for sharing.
To use admin overrides, just register the commands like this:

addons/sourcemod/configs/admin_overrides.cfg:

PHP Code:
Overrides
{
    
"sm_jetpack_give"    "z"
    "sm_jetpack_take"    "z"
    "+jetpack"            "z"
    "-jetpack"            "z"

If you just want to restrict the admin commands, change this line:

PHP Code:
#define ADMFLAG_JETPACK ADMFLAG_CUSTOM2 
to this:

PHP Code:
#define ADMFLAG_JETPACK ADMFLAG_ROOT 
That won't stop players from using "+jetpack" and "-jetpack" though.

If you want to verify the 4 commands registered by the plugin, they're on lines 153-154 and 157-158.

PHP Code:
public OnPluginStart()
{
    
// Create ConCommands
    
RegConsoleCmd("+jetpack"JetpackPressed"use jetpack (keydown)"FCVAR_GAMEDLL);
    
RegConsoleCmd("-jetpack"JetpackReleased"use jetpack (keyup)"FCVAR_GAMEDLL);

    
// Register admin cmds
    
RegAdminCmd("sm_jetpack_give",Command_GiveJetpack,ADMFLAG_JETPACK,"","give a jetpack to a player");
    
RegAdminCmd("sm_jetpack_take",Command_TakeJetpack,ADMFLAG_JETPACK,"","take the jetpack from a player");
... 
__________________
Psyk0tik is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 23:45   Re: [L4D & L4D2] Jet Pack
Reply With Quote #75

Thanks again Crasher,

This worked perfectly.

Overrides
{
**** "sm_jetpack_give" "z"
**** "sm_jetpack_take" "z"
**** "+ jetpack" "z"
**** "-jetpack" "z"
}
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 09-20-2022 , 11:19   Re: [L4D & L4D2] Jet Pack
Reply With Quote #76

About:
Toggle a command to fly, its similar to the plugin in this post but also different
Used for survivors only

Credits:
"panxiaohai", "Silvers" and "AtomicStriker"


Command:
sm_fly > to toggle fly on/off


How To Use:
When sm_fly is toggled ON, you can hold the "Reload Button" < which is usually "R" in the keyboard > to start flying.


Suggestions:
I suggest using it with this plugin Left 4 Parachute, so when landing u can activate parachute with "Use" Button


To Do:
I will attach the fire to the missile instead of the client





**There was a small bug and now fixed + I changed the fly button to "Reload Button"
Attached Files
File Type: sp Get Plugin or Get Source (L4D2 Rocket Launcher.sp - 175 views - 9.8 KB)
__________________

Last edited by alasfourom; 09-21-2022 at 06:35. Reason: Fixed a bug
alasfourom is offline
L4D2Noob
AlliedModders Donor
Join Date: Mar 2020
Location: Moscow
Old 09-20-2022 , 17:57   Re: [L4D & L4D2] Jet Pack
Reply With Quote #77

Quote:
Originally Posted by alasfourom View Post
About:
Toggle a command to fly, its similar to the plugin in this post but also different
Used for survivors only

Credits:
"panxiaohai", "Silvers" and "AtomicStriker"


Command:
sm_fly > to toggle fly on/off


How To Use:
When sm_fly is toggled ON, you can hold the "Reload Button" < which is usually "R" in the keyboard > to start flying.


To Do:
I will attach the fire to the missile instead of the client





**There was a small bug and now fixed + I changed the fly button to "Reload Button"
Code:
L 09/21/2022 - 00:56:32: [SM] Exception reported: Entity 1 (1) is invalid
L 09/21/2022 - 00:56:32: [SM] Blaming: L4D2 Rocket Launcher.smx
L 09/21/2022 - 00:56:32: [SM] Call stack trace:
L 09/21/2022 - 00:56:32: [SM]   [0] SetEntProp
L 09/21/2022 - 00:56:32: [SM]   [1] Line 325, /home/forums/content/files/3/2/0/4/1/7/197018.attach::Timer_StartFlying
L 09/21/2022 - 00:56:32: [SM] Exception reported: Entity 1 (1) is invalid
L 09/21/2022 - 00:56:32: [SM] Blaming: L4D2 Rocket Launcher.smx
L 09/21/2022 - 00:56:32: [SM] Call stack trace:
L 09/21/2022 - 00:56:32: [SM]   [0] SetEntProp
L 09/21/2022 - 00:56:32: [SM]   [1] Line 325, /home/forums/content/files/3/2/0/4/1/7/197018.attach::Timer_StartFlying
L 09/21/2022 - 00:56:33: [SM] Exception reported: Entity 1 (1) is invalid
L 09/21/2022 - 00:56:33: [SM] Blaming: L4D2 Rocket Launcher.smx
L 09/21/2022 - 00:56:33: [SM] Call stack trace:
L 09/21/2022 - 00:56:33: [SM]   [0] SetEntProp
L 09/21/2022 - 00:56:33: [SM]   [1] Line 325, /home/forums/content/files/3/2/0/4/1/7/197018.attach::Timer_StartFlying
__________________
L4D2Noob is offline
Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 09-21-2022 , 06:36   Re: [L4D & L4D2] Jet Pack
Reply With Quote #78

Quote:
Originally Posted by L4D2Noob View Post
Code:
L 09/21/2022 - 00:56:32: [SM] Exception reported: Entity 1 (1) is invalid
L 09/21/2022 - 00:56:32: [SM] Blaming: L4D2 Rocket Launcher.smx
L 09/21/2022 - 00:56:32: [SM] Call stack trace:
L 09/21/2022 - 00:56:32: [SM]   [0] SetEntProp
L 09/21/2022 - 00:56:32: [SM]   [1] Line 325, /home/forums/content/files/3/2/0/4/1/7/197018.attach::Timer_StartFlying
L 09/21/2022 - 00:56:32: [SM] Exception reported: Entity 1 (1) is invalid
L 09/21/2022 - 00:56:32: [SM] Blaming: L4D2 Rocket Launcher.smx
L 09/21/2022 - 00:56:32: [SM] Call stack trace:
L 09/21/2022 - 00:56:32: [SM]   [0] SetEntProp
L 09/21/2022 - 00:56:32: [SM]   [1] Line 325, /home/forums/content/files/3/2/0/4/1/7/197018.attach::Timer_StartFlying
L 09/21/2022 - 00:56:33: [SM] Exception reported: Entity 1 (1) is invalid
L 09/21/2022 - 00:56:33: [SM] Blaming: L4D2 Rocket Launcher.smx
L 09/21/2022 - 00:56:33: [SM] Call stack trace:
L 09/21/2022 - 00:56:33: [SM]   [0] SetEntProp
L 09/21/2022 - 00:56:33: [SM]   [1] Line 325, /home/forums/content/files/3/2/0/4/1/7/197018.attach::Timer_StartFlying
Fixed, thanks
__________________
alasfourom is offline
Reply


Thread Tools
Display Modes

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 22:27.


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