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

Everyone Is Medic


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Emp` (115)
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-04-2007 , 09:10   Everyone Is Medic
Reply With Quote #1

Everyone Is Medic v1.51
(Last Updated - 24.02.2012)

Servers running this plugin
  • Description
This plugin allows every player to heal his teammates.
  • Usage
Aim at chosen player and press your USE key (distance between you and the target must be lower than value stored in eim_range).
Say /medic to see who is medic if server is using eim_mode 1
  • Required Modules
fakemeta
  • Cvars
Code:
eim_mode 0 //0 - everyone is medic, 1 - random player in each team selected on round start is medic
eim_range 70 //distance limit
eim_hps 10.0 //health gained per second
eim_maxhealers 2 //max amount of players that can heal 1 player simultaneously
eim_healpoints 0 //max amount of hp that can be healed by player every round (0 = unlimited)
eim_healeff 1.0 //fraction of health lost that can be healed
eim_in_team 0 //which team have medics, 0 - both, 1 - ts only, 2 - cts only
  • Credits
point.blank - for the idea
  • Info
Post ideas/bug reports in this thread.
Attached Files
File Type: sma Get Plugin or Get Source (eim.sma - 2393 views - 19.8 KB)
__________________
Impossible is Nothing

Last edited by Sylwester; 02-23-2012 at 22:44.
Sylwester is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 11-04-2007 , 10:35   Re: Everyone Is Medic
Reply With Quote #2

is this for 1.6 cs ?
__________________
mando127 is offline
Send a message via Skype™ to mando127
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-04-2007 , 10:42   Re: Everyone Is Medic
Reply With Quote #3

Modification: ALL -
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-04-2007 , 11:25   Re: Everyone Is Medic
Reply With Quote #4

Do you really need tasks ?

It would be nice if the healer glowed silver or some special effect on him.
ConnorMcLeod is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-04-2007 , 11:37   Re: Everyone Is Medic
Reply With Quote #5

Is it possible to heal a door? I'm only asking because get_user_aiming can return any target entity and your code doesn't seem to check for only player entities
__________________
M249-M4A1 is offline
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 11-04-2007 , 11:43   Re: Everyone Is Medic
Reply With Quote #6

Omfg! I was making the same thing, only theres one medic in each team...
__________________
I am 52% addicted to Counterstrike. What about you?
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-04-2007 , 11:43   Re: Everyone Is Medic
Reply With Quote #7

Here lol
Code:
if(targetid >=1 && targetid <= g_max_players)
:s
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Old 11-04-2007, 11:44
Angelina
This message has been deleted by Angelina.
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-04-2007 , 11:45   Re: Everyone Is Medic
Reply With Quote #8

Quote:
Originally Posted by connorr View Post
Do you really need tasks ?

It would be nice if the healer glowed silver or some special effect on him.
No, but I had no time to think about extreme optimization when I was coding this. I saw the request, made this plugin as it looked rather simple and since it is not just one short function I decided to release it here instead in request thread. I will optimize it, add sounds, graphics when I gonna have time, but now I have to go back to the things I need to do for tommorow.

@Angelina:
Make sure you are standing very close to target player or set eim_range to 1000 or other high value.
I will make tests with latest amxx tommorow
__________________
Impossible is Nothing

Last edited by Sylwester; 11-04-2007 at 11:49.
Sylwester is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-04-2007 , 12:07   Re: Everyone Is Medic
Reply With Quote #9

Quote:
Originally Posted by Alka View Post
Here lol
Code:
if(targetid >=1 && targetid <= g_max_players)
:s
Oh snap didn't know that was the player ids haha... kill me
__________________
M249-M4A1 is offline
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 11-04-2007 , 12:54   Re: Everyone Is Medic
Reply With Quote #10

If it put this plugin on my server, you'll see a turtle of 16 guys with a shield whoses keep healing each other

But why not it can be usefull :p
__________________
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner
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 10:54.


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