Raised This Month: $95 Target: $400
 23% 

FlamingBarriers


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   v3x (159)
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-24-2005 , 20:48   FlamingBarriers
Reply With Quote #1

An upgraded and much more efficient (though still inefficent) port of my original Flaming Barriers 0.2 plugin for AMX.


Flaming Barriers 0.5b by Avalanche
Place flaming barriers (or walls) anywhere you want on a map to block off access.

----------------

You can add flames to a map to block off certain routes or to eliminate certain camping spots, among many other things. Whatever you do with them, they look really cool in quantities.

When you place a flame, you have two and a half seconds to move off of the flame before it comes active. If you have godmode, admin immunity (with flame_immunity set to 1 or 2), admin ban access (with flame_immunity set to 2), or if the flame belongs to your team, you will not be damaged.

You can add flames, remove your flames, toggle your flames on and off, or (if you have ADMIN_IMMUNITY) clear the map of all flames. It is easiest to bind a key to amx_flameadd GROUP and tap the key while you run the path you want to block off.

As of version 0.2 you can give your flames unique groups so that you may do an action on a particular group. You can use amx_flameadd TSpawn for one section of the map, and then amx_flameadd CTSpawn for the other section. Then, to remove a particular section, you can use amx_flameremove TSpawn (or CTSpawn). You can also use amx_flametoggle with a group to toggle a section of your flames on and off. Instead of specifying a group you can use the word ALL to refer to all of your flames, regardless of their group. The second parameter to the amx_flametoggle function is 0/1/2: 0 is off, 1 is on, and 2 is toggle their current status.

As of version 0.3 groups are strings instead of integers, each flame has its own individual damage and team ownership, flames are now trigger_hurt's so they work better, and there is no flame limit.

You can set the damage the flames do when you create them as the second parameter to amx_flameadd. You can actually set this to a negative amount to provide healing orifices. You can also specify a team that the flame belongs to, and it will not damage that team. If you use 0 as a team it damages all teams.

The flames stay posted round after round until they are removed by you or until the map changes. This is why you should be careful when placing flames near a spawn (you'll die before the buy time is even close to over if the players are near enough).

As of version 0.5, you can now create flame lists. For example, you might make some flames at the CT spawn in group "CTSpawn" and some flames at the T spawn in group "TSpawn" for de_dust. If you want this to be loaded automatically, you would use this command to save the list:
amx_flamelist_save "dust_spawn_flames" "CTSpawn" "TSpawn"

Then, in addons/amxmodx/configs/maps/de_dust.cfg, you would put the following:
amx_flamelist_load "dust_spawn_flames"

In order to use flame lists, you must create the following directory on your server:
addons/amxmodx/configs/flames/

Commands (requires ADMIN_BAN) access:
amx_flameadd <group> <damage> <team> - places a flame where you are standing, team is a number (-1 for none)
amx_flameremove <group> - removes all placed flames by you in that group, ALL is all
amx_flametoggle <group> <0|1|2> - toggles all placed flames by you in that group (ALL is all) to given status
amx_flameclear - removes all placed flames by everyone (this one requires ADMIN_IMMUNITY)

amx_flamelist_save <file> <group1> [group2, ...] - saves groups of flames to flame list
amx_flamelist_load <file> - loads a saved flame list
amx_flamelist_show - shows a list of all saved flame lists
amx_flamelist_remove <file> - removes a saved flame list

CVARs:
flame_enabled <0|1> - enable/disable the plugin
flame_banimmunity <0|1> - 0: no immunity, 1: ADMIN_IMMUNITY immune, 2: ADMIN_IMMUNITY and ADMIN_BAN immune

To-do list:
- Set flame toggle timers
- Commands to change damage and teams for flames
Attached Thumbnails
Click image for larger version

Name:	flmbar3.jpg
Views:	5511
Size:	132.2 KB
ID:	4020  
Attached Files
File Type: sma Get Plugin or Get Source (flamebarrier.sma - 2671 views - 18.2 KB)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 03-07-2007 at 00:10.
XxAvalanchexX is offline
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 09-24-2005 , 20:53  
Reply With Quote #2

Nice use of a trigger_hurt. Good job man.
pdoubleopdawg is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-24-2005 , 21:43  
Reply With Quote #3

wicked 5/5 ( when and hopefully it gets apporved )
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
xjavo
Member
Join Date: Sep 2005
Old 09-24-2005 , 22:16   Re: FlamingBarriers
Reply With Quote #4

Nj very usefull
xjavo is offline
Send a message via AIM to xjavo Send a message via MSN to xjavo Send a message via Yahoo to xjavo
Agret
Member
Join Date: Jan 2005
Location: Melbourne, Victoria
Old 09-27-2005 , 10:38  
Reply With Quote #5

Hoep it gets approved. It's awesome.
__________________

(`._Agret_.)
.-~*'ϔm_h__d_l_gꆨ'*~-.
Agret is offline
Send a message via ICQ to Agret Send a message via AIM to Agret Send a message via MSN to Agret Send a message via Yahoo to Agret
sub
Senior Member
Join Date: Nov 2004
Location: Morristown, New Jersey
Old 09-27-2005 , 16:18  
Reply With Quote #6

Can you make it so it saves its location so in a map specific file that loads on startup of that map. So you dont have to redo it everymap.
sub is offline
Send a message via AIM to sub Send a message via MSN to sub
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 09-27-2005 , 18:21  
Reply With Quote #7

Good job avalanche! I'm rooting for you (to get it approved)!

oh and i think Sub has a valid point.
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
d4rkst4r
Senior Member
Join Date: Jul 2005
Old 09-27-2005 , 18:29  
Reply With Quote #8

is it possible to boost people over the wall of fire?
d4rkst4r is offline
scriptyboy
BANNED
Join Date: Sep 2005
Old 09-27-2005 , 18:35  
Reply With Quote #9

Quote:
Originally Posted by d4rkst4r
is it possible to boost people over the wall of fire?
yea it is...ive done it on de_rats...like on a ladder too...if they dont touch the fire...they dont get hurt.
scriptyboy is offline
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 10-03-2005 , 19:17  
Reply With Quote #10

maybe add a flameheight cvar

amx_flameheight (units)
__________________
atomic is offline
Reply


Thread Tools
Display Modes

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 14:22.


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