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

Flashlight for Escape maps


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   Fun Stuff        Approver:   Hawk552 (427)
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-20-2009 , 14:08   Flashlight for Escape maps
Reply With Quote #1

This plugin is specifically for Escape maps - players are civilians, they cannot use grenades anyway, while a flashlight is essential for this kind of maps. Instead of messing with the players' binds or having to type something like "light on", this replaces the unused grenade function with the flashlight. This also comes in handy for Half-Life and Sven Co-op players, since the default grenade key in TFC ('F') is used for the flashlight in HL and SC. I can say this, I've run an Escape maps server for a couple of months and I was pleased with the way the plugin works.

Planned feature in next version:
- Enable plugin only on selected maps, listed in a text file.
Attached Files
File Type: sma Get Plugin or Get Source (flashlight.sma - 1368 views - 878 Bytes)
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 08-21-2009 at 19:50.
pizzahut is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-20-2009 , 14:09   Re: Flashlight for Escape maps
Reply With Quote #2

bind "key" "impulse 100"
__________________
xPaw is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-20-2009 , 14:50   Re: Flashlight for Escape maps
Reply With Quote #3

The grenade key is usually within reach, and I don't have to change binds each time I change server.

I also wanted a solution which works for *all* players, and so binding it to a selected key isn't possible, as it might be used for something else already by other players.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-20-2009 , 16:13   Re: Flashlight for Escape maps
Reply With Quote #4

client_cmd(id, "impulse 100")

This will be affected with lag, set player EV_INT_impulse to 100 instead.

Anyway, this is useless when players have a key bound to impulse 100, also i don't see any relation with es_ maps ?
__________________
- tired and retired -
ConnorMcLeod is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-20-2009 , 16:44   Re: Flashlight for Escape maps
Reply With Quote #5

Yes, players who have it bound already don't need it, but it doesn't do any harm for them either. On the other hand it's useful for players who don't have it bound.

es_ maps? Are you thinking Counter-Strike as_ maps? Escape maps are these for example:

arcticescape_r
area49
artifact
colonyx_r
egyptian_escape
jurassicpark
k_thegame
militia_beta
nightshift_r2
planet3c_r
run3_r
shipwrecked
smurfescape
the_damned

There are often dark (unlit) areas in these.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-20-2009 , 16:46   Re: Flashlight for Escape maps
Reply With Quote #6

Anyway, update it with :

entity_set_int(id, EV_INT_impulse, 100)
__________________
- tired and retired -
ConnorMcLeod is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-20-2009 , 16:55   Re: Flashlight for Escape maps
Reply With Quote #7

Updated.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-06-2009 , 15:09   Re: Flashlight for Escape maps
Reply With Quote #8

This plugin is well done.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 09-11-2009 , 17:54   Re: Flashlight for Escape maps
Reply With Quote #9

excellent idea, nice to see some more tfc plugins :-) keep up the good work pizzahut!
__________________
+|- KARMA Respectively

HLM 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 23:27.


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