Plugin Info:
|
Modification:
Category:
Approver: GHW_Chronic (70)
|
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
|
07-31-2006
, 12:45
Freeze 'em Mk2
|
#1
|
/**
|** Description:
|** Kensai's "Freeze 'em", rewritten from scratch using
|** some new methods thanks to GHW_Chronic.
|**
|** A frozen user cannot shoot, move, or be moved by admin.
|**
|** I rewrote this because I wanted a frozen player to be
|** neutralized and protected by godmode. That combination
|** makes them truly "frozen", not "stuck". I don't play
|** cstrike so UAIO is out of the picture. I never did like
|** how bury just shoves you into a brush to be stuck.
|**
|** "Stuck" makes you vulnerable to attack or TFC grenades.
|** "Frozen" makes you unable to move until suicide or thaw.
|**
|** I also didn't like having to type two commands,
|** so I made it into a single toggle command of amx_freeze.
|**
|**
|** Idea: Toggle the ability of a player to move.
|** Usage: amx_freeze <name or #userid>
|**
|** Module Required: "fun" for get+set of user_godmode natives.
|** Module Required: "engine" for the client_PreThink stuff.
|** Module Optional: "tfcx" for setbammo,setweaponbammo. See USE_TFC define.
|**
|** Changelog:
|** 2006-12-05 @ v1.6r - cleaned up a third time. Thank you, Hawk552, for your help.
|** 2006-11-29 @ v1.5r - cleaned up again.
|** 2006-11-26 @ v1.4r - cleaned up code.
|** 2006-09-11 @ v1.3r - borrowed method from Sonic to disallow suicide via "kill"
|** 2006-08-09 @ v1.2r - added is_user_alive trap to auto-thaw dead players that have been slayed/suicided. ammo strip no longer required so only tfc nades will be stripped (if use_tfc==1).
|** 2006-08-09 @ v1.1r - added PreThink code to freeze user instead of maxspeed from GHW_Chronic
|** 2006-07-30 @ v1.0r - Yay! fixed the linux TFCX. ready for release.
|** 2006-07-28 @ v0.70 - cleaned up comments/documentation, permission from Kensai to release.
|** 2006-07-28 @ v0.66 - now remembering last user maxspeed to avoid assumptions.
|** 2006-07-28 @ v0.65 - code split into more functions. tfcx ammo natives still broken on linux.
|** 2006-07-13 @ v0.64 - freeze,glow,alpha work. ammo strip fails on linux.
*\*
**\
**/
You should be able to use this plugin on any mod now.
There is a TFC-specific grenade stripping feature in the second version posted here as jr_freeze2-tfc.
The only difference in the "tfc" version is that USE_TFC is true and some preprocessor directives include the tfc/TFCX grenade-stripping feature.
A fixed linux-TFCX-module is attached because of a small bug in 1.75a and below that causes ammo-stripping in TFC to fail on a linux box. You may need it if using linux AMXX<=1.75a. I'll leave this file here, but you should upgrade to 1.76 or whatever is current so that you get more than one fix.
Last updated: 2006-12-05
Last edited by jRaven; 12-05-2006 at 18:16.
Reason: cleaner code for v1.6
|
|
|
|