AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] EngiPads - Custom Teleporter Replacements (v1.1.0, 2018-01-10) (https://forums.alliedmods.net/showthread.php?t=304025)

starblaster64 12-31-2017 21:51

[TF2] EngiPads - Custom Teleporter Replacements (v1.1.0, 2018-01-10)
 
1 Attachment(s)
Engineer Pads




NOTE: Not currently actively maintained.


Description:
EngiPads adds the ability for Engineers to replace their Teleporters with custom buildings (Pads).

Currently there are two Pad types:
  • Boost: Gives allies a speed boost for a short duration.
  • Jump: Launches allies up and forwards in the direction they're moving.
You select your desired Pad by rotating before building.

Pads, unlike Teleporters, are totally independent from one another.
They spawn with 50HP, and have a max HP of 100 (like Mini-Sentries).
Pads cannot be upgraded. You can re-deploy a Pad to change its Pad type.


Current translation languages: English.


ConVars:
Code:

pads_version                                    - Plugin version. Don't touch this. If you do it'll fix itself anyway.
pads_enabled                    (def. 1)        - Enables/Disables the plugin. (2 - BoostPads only, 3 - JumpPads only)
pads_announce                  (def. 347.0)    - Interval between chat announcements about the plugin. 0.0 to disable.
pads_size                      (def. 0.7)      - Pad size multiplier.
pads_health                    (def. 100)      - How much HP Pads will have. Will initially spawn with 1/2 of this.
pads_jump_speed                (def. 700.0)    - How fast players will be launched horizontally by Jump Pads.
pads_jump_height                (def. 700.0)    - How fast players will be launched vertically by Jump Pads.
pads_jump_crouch_speed_mult    (def. 1.0)      - Multiply crouching players' speed by this much when using Jump Pads.
pads_jump_crouch_height_mult    (def. 1.0)      - Multiply crouching players' height by this much when using Jump Pads.
pads_jump_block_snipers        (def. 1)        - If enabled, prevents Snipers from scoping in while using Jump Pads.
pads_jump_cooldown              (def. 3.0)      - How long, in seconds, should Jump Pads take to recharge?
pads_boost_duration            (def. 5.0)      - How long, in seconds, should Boost Pads boost players for?
pads_boost_speed                (def. 520.0)    - What minimum speed should players be boosted to when using Boost Pads?
pads_boost_damage_threshold    (def. 35)      - How much damage a player can take before their Boost Pad boost is ended. 0 to disable.
pads_boost_airblast            (def. 1)        - Controls if airblasting a player will end their Boost Pad boost.
pads_boost_block_aiming        (def. 1)        - Set to 1 to prevent scoped-in/revved up players from being speed boosted.
pads_boost_cooldown            (def. 3.0)      - How long in seconds should Boost Pads take to recharge?
pads_bots_can_build            (def. 0)        - If enabled, Bots will build Boost Pads instead of Teleporters.
pads_block_eureka              (def. 1)        - Toggle blocking Eureka Effect from teleporting to Pads that are Exits.

Commands:
Code:

sm_pad
sm_pads                    - Opens a menu to toggle EngiPads on/off. Selection saved via cookies.
sm_pad_help
sm_padhelp                - Displays a panel with basic information about the plugin.

sm_engipads_override      - Not a command. Use this in admin_overrides.cfg to override who can/can't build EngiPads.


Installation:
Extract the contents of "engipads_vX.zip" into tf/addons/sourcemod.

The config file will be automatically generated the first time you run the plugin.
You can find and modify it at tf/cfg/sourcemod/engipads.cfg

Dependencies: None! But you will require morecolors.inc if you want to compile the plugin yourself.

GitHub Repo: https://github.com/Starblaster64/TF2-Engineer-Pads

Changelog:
Quote:

2017-02-13 (v1.1.0)
  • Added CVAR pads_boost_damage_threshold: Controls how much damage can be taken before a Boost Pad boost is ended early.
  • Added CVAR pads_boost_airblast: Controls if airblasting will end a Boost Pad boost early.
  • Minor code changes.
2017-01-10 (v1.0.2)
  • Reverted replacement of AcceptEntityInput() with RemoveEntity() since it's only present in SM 1.9, not 1.8. Will add it back once 1.9 becomes stable.
  • Added missing "cannot" to English translations file.
2017-01-08 (v1.0.1)
  • Updated SMLIB stocks to check if SMLIB is already included to avoid conflicts.
  • Added IsValidEntity() check to the sound hook.
  • Added exit button to Pads toggle menu.
  • Replaced instances of AcceptEntityInput(i, "Kill") with the new RemoveEntity() input.
2017-01-01 (v1.0.0)
  • Release!

Todo/Idea List:
Quote:

  • Clean up and re-organise more code
  • Add damage threshold for the Boost Pad Boost.
  • Make SMLIB stocks check if SMLIB is included to avoid conflicts
  • Natives/Forwards to allow other plugins to add more Pad types. (Maybe, only if there's any interest. Never made any natives/forwards before.)
  • Negative effects for players that walk over enemy Pads. (Toggleable via CVAR)
  • More Pad types. (No (balanced) ideas currently)
  • Custom models (There's a distinct lack of custom Teleporter models, unfortunately)
  • Custom Weapons 3 Attributes sub-plugin
  • Make GitHub repo

Known Bugs:
Quote:

  • Certain sounds can be heard globally.
  • PadConds can leak into the next round if Pads are used as the round restarts.
  • pads_block_eureka CVAR does not work correctly. Any Exits that are Pads will prevent all Engineers from EE teleporting to their Exit.
  • Something in OnGameFrame() can cause massive log spam (?).

Credits/Thanks:
Quote:

  • Pelipoika & Psychonic - For helping me find the offset for m_hMatchingTeleporter
  • berni & co. - For the SMLIB stocks I used
  • Dr. McKay - For morecolors.inc
  • FlipFTW - Beta "testing"
GitHub Contributors
  • Glubbable


starblaster64 12-31-2017 21:58

Re: [TF2] EngiPads (v1.0.0, 2018-01-01)
 
--reserved?--

Fearts 01-01-2018 22:11

Re: [TF2] EngiPads (v1.0.0, 2018-01-01)
 
Neat.

PC Gamer 01-02-2018 01:27

Re: [TF2] EngiPads (v1.0.0, 2018-01-01)
 
Works great! Thank You!

Nanochip 01-02-2018 02:24

Re: [TF2] EngiPads (v1.0.0, 2018-01-01)
 
Looks good, thanks for sharing.

404UserNotFound 01-02-2018 13:52

Re: [TF2] EngiPads (v1.0.0, 2018-01-01)
 
Was this named after the "speed pad" (image source here) building that had a sound file name leaked after the EotL update?

starblaster64 01-02-2018 22:01

Re: [TF2] EngiPads (v1.0.0, 2018-01-01)
 
Quote:

Originally Posted by 404UserNotFound (Post 2569408)
Was this named after the "speed pad" (image source here) building that had a sound file name leaked after the EotL update?

Well yes and no.
The entire plugin is an amalgamation of the Engineer pad ideas that I've seen spring up over the years, as well as from other games too.
So I wouldn't say it was directly named after the leaked building.
"Pad" isn't exactly a unique name for a building itself either, and I don't really know what else I'd call them to be honest. "Mobility platforms" doesn't quite roll off the tongue as nicely as "EngiPads". p:

404UserNotFound 01-03-2018 00:46

Re: [TF2] EngiPads (v1.0.0, 2018-01-01)
 
Quote:

Originally Posted by starblaster64 (Post 2569447)
Well yes and no.
The entire plugin is an amalgamation of the Engineer pad ideas that I've seen spring up over the years, as well as from other games too.
So I wouldn't say it was directly named after the leaked building.
"Pad" isn't exactly a unique name for a building itself either, and I don't really know what else I'd call them to be honest. "Mobility platforms" doesn't quite roll off the tongue as nicely as "EngiPads". p:

Ah, well it's a neat plugin regardless :D

FlaminSarge 01-04-2018 19:50

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.0, 2018-01-01)
 
D'you have a Github repo for this?

crafting 01-04-2018 22:47

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.0, 2018-01-01)
 
This is AMAZING!! I do have some ideas for more pads. I would love to work with you for Custom Weapons. I know that you do know about us and like I said "this is AMAZING".

I am currently getting a update for our servers off the ground and if this goes through, I would love to have these as new PDAs on our servers. :)

starblaster64 01-05-2018 21:20

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.0, 2018-01-01)
 
Quote:

Originally Posted by FlaminSarge (Post 2569819)
D'you have a Github repo for this?

Not yet, but I was thinking of setting one up if the plugin warranted more updates.
I'll see if I can get one up this weekend.

Quote:

Originally Posted by crafting (Post 2569830)
This is AMAZING!! I do have some ideas for more pads. I would love to work with you for Custom Weapons. I know that you do know about us and like I said "this is AMAZING".

I am currently getting a update for our servers off the ground and if this goes through, I would love to have these as new PDAs on our servers. :)

Thanks. I was originally debating whether I should make this a weapon for CW3, or a standalone plugin. I decided a standalone plugin would be easier since I've never actually made an attributes plugin for CW2 or CW3 before. I also figured I might as well make it consistent with other custom buildings that were also standalone plugins. (Amplifier, Repair Node)

I don't plan on making a CW3 version right now, but I'll put it on the potential ideas list.
I'm currently also dealing with a failing computer I need to replace, so that doesn't help things.
After early February I should have a lot of free time though, I'll consider it again around then.

starblaster64 01-06-2018 19:37

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.0, 2018-01-01)
 
Quote:

Originally Posted by FlaminSarge (Post 2569819)
D'you have a Github repo for this?

Just got one set up: https://github.com/Starblaster64/TF2-Engineer-Pads

starblaster64 01-07-2018 20:36

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.1, 2018-01-08)
 
Updated to v1.0.1!
Quote:

  • Updated SMLIB stocks to check if SMLIB is already included to avoid conflicts.
  • Added IsValidEntity() check to the sound hook.
  • Added exit button to Pads toggle menu.
  • Replaced instances of AcceptEntityInput(i, "Kill") with the new RemoveEntity() input.


PC Gamer 01-08-2018 13:12

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.1, 2018-01-08)
 
Error with v1.0.1: [SM] Unable to load plugin "engipads.smx": Native "RemoveEntity was not found

Can you re-post version 1.0 so I can reinstall that version?

starblaster64 01-09-2018 17:16

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.1, 2018-01-08)
 
Quote:

Originally Posted by PC Gamer (Post 2570665)
Error with v1.0.1: [SM] Unable to load plugin "engipads.smx": Native "RemoveEntity was not found

Can you re-post version 1.0 so I can reinstall that version?

Oh hm, looks like that new native was only added to the SM 1.9 branch. I could've sworn it was added to 1.8 too.
I'll fix it when I have some free time.

Otherwise, you can simply use SM 1.9 for now to get it to run.

starblaster64 01-09-2018 22:35

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.0.1, 2018-01-08)
 
Updated to v1.0.2
Quote:

  • Reverted replacement of AcceptEntityInput() with RemoveEntity() since it's only present in SM 1.9, not 1.8. Will add it back once 1.9 becomes stable.
  • Added missing "cannot" to English translations file.


starblaster64 02-12-2018 22:05

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.1.0, 2018-01-10)
 
Updated to v1.1.0
Quote:

  • Added CVAR pads_boost_damage_threshold: Controls how much damage can be taken before a Boost Pad boost is ended early.
  • Added CVAR pads_boost_airblast: Controls if airblasting will end a Boost Pad boost early.
  • Minor code changes.


crafting 02-25-2018 02:51

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.1.0, 2018-01-10)
 
Quote:

Originally Posted by starblaster64 (Post 2577896)
Updated to v1.1.0

Glad to see more options put into this. Btw, I would love to see CW3 to work with this. I might be able to get a model made for this :)

Lastly, could there be 2 options for the speed pad?
1) The current version that sets anyone to the preset speed
2) *NEW OPTION* Let it be a percentage amount so it would affect the slow/fast classes differently.

RavensBro 01-29-2020 15:03

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.1.0, 2018-01-10)
 
L 01/29/2020 - 12:28:59: [SM] Exception reported: Entity 1 (1) is invalid
L 01/29/2020 - 12:28:59: [SM] Blaming: engipads.smx
L 01/29/2020 - 12:28:59: [SM] Call stack trace:
L 01/29/2020 - 12:28:59: [SM] [0] GetEntPropString
L 01/29/2020 - 12:28:59: [SM] [1] Line 758, C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-windows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\include\enti ty.inc::GetEntityClassname
L 01/29/2020 - 12:28:59: [SM] [2] Line 408, C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-windows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\engipads.sp: :HookSound

ScrapEngineer 06-11-2020 06:50

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.1.0, 2018-01-10)
 
Could someone set this plugin up for Custom Weapons 3? I've tried myself but I've not managed to actually get it working, thanks.

404UserNotFound 06-01-2022 00:45

Re: [TF2] EngiPads - Custom Teleporter Replacements (v1.1.0, 2018-01-10)
 
Quote:

Originally Posted by RavensBro (Post 2682115)
L 01/29/2020 - 12:28:59: [SM] Exception reported: Entity 1 (1) is invalid
L 01/29/2020 - 12:28:59: [SM] Blaming: engipads.smx
L 01/29/2020 - 12:28:59: [SM] Call stack trace:
L 01/29/2020 - 12:28:59: [SM] [0] GetEntPropString
L 01/29/2020 - 12:28:59: [SM] [1] Line 758, C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-windows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\include\enti ty.inc::GetEntityClassname
L 01/29/2020 - 12:28:59: [SM] [2] Line 408, C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-windows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\engipads.sp: :HookSound

Needs a valid entity check.


All times are GMT -4. The time now is 20:39.

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