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

Jailbreak Hats


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-25-2009 , 20:42   Jailbreak Hats
Reply With Quote #1

Jailbreak Hats


description
A friend of mine showed me his Jailbreak server today and by playing on it I had the idea of making a plugin that makes Counter-Terrorists able to spawn hats to order Terrorists to catch them. It works like:

A
Counter-Terrorist chooses a hat from a dynamic visual menu and by holding the knife, presses USE to select it, DROP to do not give one, and LEFT_ATTACK, RIGHT_ATTACK to rotate the menu.

After the hat is select it is spawned to the floor and then, by pressing USE a Terrorist can dress it and a Counter-Terrorist can remove it (even if it is in the terrorist's head)
video
http://www.youtube.com/watch?v=XJxT4_tQAWg

(By convenience, the video is made with a CT only that changes to T in
the middle of the process)

commands
say /hatsmenu Opens the menu. The menu is for CounterTerrorists only and it's items are just visible for the player who opens it
cvars
jailbreakHats_points (Points in the circle where menu is display per each hat. Basically, increase it to smooth the animation, decrease it to make it faster)
jailbreakHats_ray (Length of circle's ray per each hat. The bigger it is the bigger the circle)
jailbreakHats_rayFactor A factor, applied to the circle's ray, to set how far the menu is from the viewer
jailbreakHats_minTrans The minimum transparency that a hat can have in the menu. (Hats closer are less transparent). Put it 255 to have no transparency differences
jailbreakHats_distance_spawn_hat Distance the hat is spawned after being selected
jailbreakHats_distance_use_hat How far one can delete/dress a hat
jailbreakHats_owner_delete Hat's can only be deleted by the CT who spawned them
jailbreakHats_effect Effect applied to the hat that is closer to you and the one you will going to select. 0 - Transparency effect. 1 - Glow effect
jailbreakHats_glow_color Color for glow effect (only)

I haven't experienced the plugin in a Jailbreak server yet since I've just finished know so, I'm open to critics and tips.

Put the hats names in a file called "jailbreakHats.ini" in the configs folder.
That file is automatically created in the first time you run this plugin (but empty).

The names of the models are the filenames without the ".mdl" extension

Do not thank me by the hats or by their concept since I'm not anyhow related to that idea. I'm just expanding it for a different use.

The original hats plugin's thread is here.

Download the models (and only the models if you just want to use this plugin) in that thread. This plugin doesn't need that one. But it needs the models.

Notes:

The menu is visually better with small hats. Bigger hats or extra stuff like the superman cape doesn't stays well aligned because each model has an inherent offset from the player origin.

The hats in the menu are entities in the world so if you open it close to a wall they will be inside the wall. That can only be like that (since model's size can't be changed)
Attached Files
File Type: sma Get Plugin or Get Source (jailbreakHats.sma - 10474 views - 15.8 KB)
__________________

Last edited by joaquimandrade; 08-25-2009 at 20:44.
joaquimandrade is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 08-25-2009 , 20:44   Re: Jailbreak Hats
Reply With Quote #2

My god, this is awesome
__________________
"There is no knowledge, that is not power"
fezh is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 08-25-2009 , 20:45   Re: Jailbreak Hats
Reply With Quote #3

LOL.
BOYSplayCS is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 08-25-2009 , 20:47   Re: Jailbreak Hats
Reply With Quote #4

Quote:
Originally Posted by BOYSplayCS View Post
LOL.
__________________
"There is no knowledge, that is not power"
fezh is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 08-25-2009 , 20:51   Re: Jailbreak Hats
Reply With Quote #5

i know that menu style!
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 08-25-2009 , 20:55   Re: Jailbreak Hats
Reply With Quote #6

Quote:
Originally Posted by tuty View Post
i know that menu style!
The video gave me flashes of when I played some games of Star Wars, it was the same menu style.
__________________
"There is no knowledge, that is not power"
fezh is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-25-2009 , 21:01   Re: Jailbreak Hats
Reply With Quote #7

[IMG]http://img145.**************/img145/190/andrade2.jpg[/IMG]
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 08-25-2009 , 21:02   Re: Jailbreak Hats
Reply With Quote #8

nice
VMAN is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 08-25-2009 , 22:42   Re: Jailbreak Hats
Reply With Quote #9

very cool. i like the menu!!!
__________________
[B]
{PHILMAGROIN} is offline
fang
Senior Member
Join Date: Nov 2007
Location: New Jersey
Old 08-25-2009 , 23:24   Re: Jailbreak Hats
Reply With Quote #10

I am in love with your plugins
fang is offline
Reply



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 05:02.


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