Raised This Month: $ Target: $400
 0% 

Freeze 'em Mk2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   GHW_Chronic (70)
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 07-31-2006 , 12:45   Freeze 'em Mk2
Reply With Quote #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
Attached Files
File Type: so tfcx_amxx_i386.so (77.0 KB, 477 views)
File Type: sma Get Plugin or Get Source (jr_freeze2.sma - 1789 views - 7.3 KB)
File Type: sma Get Plugin or Get Source (jr_freeze2-tfc.sma - 1575 views - 7.3 KB)

Last edited by jRaven; 12-05-2006 at 18:16. Reason: cleaner code for v1.6
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
 



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 01:57.


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