AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] All-Class Dead Ringer (https://forums.alliedmods.net/showthread.php?t=321443)

Shadowysn 02-11-2020 02:36

[TF2] All-Class Dead Ringer
 
47 Attachment(s)
This plugin was made using Mentlegen's simple plugin as a base.

-= Credits =-

= Mentlegen, for his original plugin that was used as a base. Even though he disappeared from Alliedmodders. :( =
= codename-G-, for their Fake Death plugin, created before the Dead Ringer was a thing, in which I took parts of the corpse creation code. =
= nosoop, for solving the death notice crisis before version 1.2.0 whilst I stood by the sidelines, not being much help. Thanks, and sorry for not crediting you sooner, I completely forgot about your aid. =


-= Description =-

An All-Class Dead Ringer for TF2. This was mainly an experiment, so expect bugs.
Upon activation, a fake corpse + ammo pack + weapon is dropped, and the scoreboard and top-of-screen reporter's status for it's user will report them as 'dead' for as long as the cloak is active.


-= Features =-

- Fake corpse + fake ammo pack + weapon drop as well as fake death sounds.
- 3 seconds speed boost + afterburn immunity. (toggleable and controllable)
- Fake 'final hit' hitsounds.
- Recharge and cloak timers.
- Right-mouse click to drop cloak.

-= To-do =-

- Actual energy system that can be replenished by ammo.
- Proper fix for sideways corpse spawn that occurs while disguised. For now, the spy may appear with Uber for a split second.
- [TODO BUG-FIX] Proper fix for Heavies to stop revving/shooting their minigun and Snipers to unscope from their sniper, once cloaked.
- [TODO BUG-FIX] Fix healing condition still staying on a healed patient that uses AC-DR. Will essentially give them regen and %150 of hp.

-= ConVars =-

sm_ac_dr_recharge_timelimit [0.0/ANY] = Set the time limit until the AC-DR fully recharges.
sm_ac_dr_cloak_timelimit [0.0/ANY] = Set the time limit the AC-DR cloaks the user for.
sm_ac_dr_speedboost [0.0/ANY] = Time of speed-boost upon AC-DR usage. 0.0 = disable.
sm_ac_dr_weapon_time [0.0/ANY] = Time until weapons can be used again upon AC-DR uncloaking. 0.0 = disable.
sm_ac_dr_afterburn_immune [0/ANY] = Time of afterburn-immunity upon AC-DR usage. 0.0 = disable.
sm_ac_dr_friendlydis [0/1] = Makes Spies drop the corpse of the friendly disguise instead of themselves.
sm_ac_dr_classrestrict_spy [0/1] = Restrict Spies from using the AC-DR.
sm_ac_dr_extra_effects [0/7] = Recreate other effects that the normal DR couldn't. (BITFLAGS) 1 = Attacker benefits. | 2 = Ammopack gives ammo. | 4 = Engineer buildings fake explode and killfeed.
sm_ac_dr_bots [0/3] = Toggle bot behavior with AC-DR. (BITFLAGS) 1 = Enable on spawn. | 2 = Enable when available after recharging.
sm_ac_dr_damage_res_max [0/ANY] = Damage is multiplied by this value for cloaked AC-DR users with HIGH charge. Do <0.9 for lesser damage.
sm_ac_dr_damage_res_min [0/ANY] = Damage is multiplied by this value for cloaked AC-DR users with LOW charge. Do <0.9 for lesser damage.
sm_ac_dr_teams [0/15] = Choose AC-DR availability for teams. Mainly for MVM. (BITFLAGS) 1 = Team RED can use. | 2 = Team BLUE can use. | 4 = Set team restrict for MVM. | 8 = Set team restrict for all other gamemodes.

sm_fd = Toggle the All-Class Dead Ringer.
sm_fd_ply = Toggle the All-Class Dead Ringer on a specified player. (Admin-only)

TF2_AC_DR.cfg will be generated into cfg/sourcemod for you to control these CVars.

-= Further Info =-

- This triggers the actual Dead Ringer's fake death mechanic, adding a bit more to feign death better. (Death state on top-of-screen reporter, unfinished fix for corpse spawning sideways if spy is disguised, etc.)
- The fix for the sideways fake corpse will result in the spy blinking into uber for a split-second before cloaking.

-= Releases =-
Spoiler

Shadowysn 02-11-2020 05:22

Re: [TF2] All-Class Dead Ringer
 
The damn forum secretly switched the compiler to 1.1 while I had initially set it up to 1.8.

Shadowysn 07-02-2021 10:13

Re: [TF2] All-Class Dead Ringer
 
Updated to Version 1.2.0, new code has no more need for an extension and gamedata.


All times are GMT -4. The time now is 03:02.

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