AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Be Medic (https://forums.alliedmods.net/showthread.php?t=159486)

RedSword 06-17-2011 19:52

[CS:S] Be Medic
 
8 Attachment(s)
Be Medic

v. 1.4.2
Features :
This plugin allows people of both team to buy (or randomly get) medic training (<sm_bemedic | say !bemedic | say_team !bemedic> ). People with medic training can heal people. To do so, they need to be near the wounded target, with their knife in hand and hold the use ('e') key. A progressbar (defusebar) will be show showing when the target will be healed.

A specific model (or an over-head icon if you don't want to make your user download the model; be sure to check the config created by the plugin) is given to the medics and a little animation can be seen when there is healing going on. Note that if you disable models in the .cfg file, they won't be precached/downloaded. That may be wanted if you want to avoid players downloading models.

Players willing to call a medic can bind a key to "sm_medic" or "<say | say_team> !medic". A radio-shout will be used ('!' + glow on radar + radio message), unless disabled (can be replaced with an ambient shout).

Attachment 87583Attachment 87584Attachment 87585Attachment 88535Attachment 88536

Known bugs :
  • None. Please report any.

CVars :
  • bemedicversion: Gives version -_-'
  • ----------
  • bemedic : Maximum medics per team. 0 = disable plugin. Def. 2.
  • bemedic_random : Are the medic training given to random players ? 1=Yes, 0=No. Def. 0. New since 1.4.0.
  • bemedic_announce : Announce at the beginning of every X rounds that people can be medic. (If bemedic_random = 1, then announces who are the medics) 0 = No, 1+ = Yes. Def. 2.
  • bemedic_range : The maximum distance for a medic to heal someone. Def. 100.0.
  • bemedic_time : How many seconds it takes for a medic to heal someone. Integer. Def. 2.
  • bemedic_maxHealth : Maximum life of someone (for custom plugins/mods). Def. 100.
  • bemedic_heal : How much direct healing a medic does. Def. 10.
  • bemedic_icon : Show over head icon red cross ? 0 = No, 1 = Yes (Default).
  • bemedic_model : Give medics specific models ? 0 = No, 1 = Yes (Default).
  • bemedic_team : Resrict a certain team from becoming medic? 0 = No, 1 = Yes (restrict T), 2 = Yes (restrict CT). Def. 0.
  • bemedic_target : Medics can only target their teamates? 0 = No, 1 = Yes (Default).
  • ----------
  • bemedic_buycost : How much it costs to become medic. Def. 1000.
  • bemedic_buytime : Restrict medic training purchase with buytime. 0 = No, 1 = Yes (Default).
  • bemedic_buyzone : Restrict medic training purchase to buyzones. 0 = No, 1 = Yes (Default).
  • ----------
  • bemedic_overtimeheal_amount : How much a heal does per wave. Def. 4.
  • bemedic_overtimeheal_delay : How much time it takes between two healing wave. 0.0 = Disable overtime heal. Def. 2.0.
  • bemedic_overtimeheal_number : How many waves will it takes before wearing off. 0 = Disable overtime heal. Def. 10.
  • bemedic_overtimeheal_interrupt : Does damage breaks overtime healing ? 0 = No, 1 = Yes (Default).
  • bemedic_overtimeheal_animation : Show healing animation ? 0 = No, 1 = Yes (Default).
  • ----------
  • bemedic_callmedic_radio : Handle medic shout like a radio command ? 0 = No, 1 = Yes (Default).
  • bemedic_callmedic_sound : How will the sound be played ? 0 = No sound, 1 = Radio sound, 2 = Ambient sound. Def. 1.
  • bemedic_callmedic_cooldown : Minimum time required between two calls for a medic. Def. 1.0.
  • bemedic_callmedic_volume : How strong will the sound be played. Min = 0.0, max = 1.0 (Default).

How to install :
Extract "bemedic_ressources" at your cstrike folder...
  • "redcross.vmt" and "redcross.vtf" should be in "materials\custom".
  • "medic.wav" should be in "sound\misc".
  • 6 different files with the prefix "ct_urban" in "models/player/smithy/ct_medic_v2".
  • 2 different files with the prefix "ct_urban" in "materials/models/player/smithy/ct_medic_v2".
  • 6 different files with the prefix "slow" in "models/player/slow/hl2/medic_male".
  • 6 different files with the prefix (2)"eric_facemap", (2)"eyeball_l" and (2)"eyeball_r" in "materials/models/player/slow/hl2/medic_male".

Also download the plugin and its translation file ;) :
  • "bemedic.smx" should be in in "plugins" folder.
  • "bemedic.phrases.txt" should be in "translations" folder.

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

Any suggestions/comments on the code or the plugin are welcomed and appreciated.

Credits to :
  • Nut / toazron1 - For his [TF2] Donator Recognition plugin from where I took the show-overhead-sprite code.
  • exvel for his questions (which he himself answered in the scripting section of SM)
  • Twisted|Panda for his buyzone / buytime restriction examples
  • psychonic for his buttons press/release code thread
  • swixel and psychonic (again) for irc help
  • Fredd for his "Radio Help Icon" plugin for the overhead radio icon :)
  • javalia for his(her ?) stock functions (stocklib.inc) for how to reproduce a radio command :)
  • tuty for his sound
  • lokizito and away000 for brazilian-portuguese translation
  • Leonardo for his russian translation
  • Wuestenfuchs, BrianGriffin and Billy1987 for german translation
  • smithy for his awesome models search. He tooks some models (including the used one below) and recompiled them server-side for my plugin. He's also the one who suggested models to be implemented.
  • S-LoW for terrorist medic model conversion and his support (http://s-low.info moved http://s-low.net/forum/viewtopic.php?t=103).
  • d0nn for CT medic model (http://www.gamebanana.com/skins/26846)
  • Translators of current .phrases file :
    Spoiler

Changelog :
Spoiler


Todo list/my requests :
  • Add a channel-beginning sound so we know someone's going to be healed (a link to a bandage-wrapping kind-a sound would be greatly appreciate :) ).
  • A better terrorist medic would also be nice. I'm not a huge fan of terrorists that we can see the whole head's skin.
  • Test http://forums.alliedmods.net/showthread.php?t=206651 for alternative sprite parenting.
  • Ensure that file exist before using animation/icons; same w/ model I guess,
  • Try to do it as with the sandvich in TF2 (drop a medkit).
  • Tell who was randomly chosen to be medic when that's the case.
  • Show when we're a medic on the HUD.
  • HL2DM ?

thedon 06-17-2011 23:05

Re: [CS:S] Be Medic
 
Great Plugin, testing it now. Will come back with feedback

RedSword 06-18-2011 01:54

Re: [CS:S] Be Medic
 
Quote:

Originally Posted by thedon (Post 1490470)
Great Plugin, testing it now. Will come back with feedback

Awaiting it =).

I do know I need some sound when beginning to heal (any file-link would be great).

My point making this plugin is to get a non-rigged medic; so I can add something great to CS: S while having something fairly balanced (that's why I did put something such as interrupting overtime heal ;)).

EDIT : Added brazilian-portuguese translation. Credits for that translation go to lokizito.

RE-EDIT : Added russian translation. Thanks to Leonardo.

sinblaster 06-20-2011 08:56

Re: [CS:S] Be Medic
 
looks great, there's that half life to medic machine sound, Ill try find it, I always liked that. Ill see if I can find it

sinblaster 06-20-2011 09:39

Re: [CS:S] Be Medic
 
1 Attachment(s)
There's some health related sounds in this zip. I couldn't find the one I was talking about but there's a couple of heartbeats and a few ambient machine sounds that may or may not help. If you want anything edited or made PM me red.

smithy 06-20-2011 12:34

Re: [CS:S] Be Medic
 
1 Attachment(s)
Hi this plugin looks great i dont suppose you would be willing to add skin support

I have just recompiled this one from gamebanana to be used for server side

[IMG]http://img820.**************/img820/643/ctmedic.th.jpg[/IMG]


All credits go to orignal skin creator i just simply recompiled for server side use

http://www.gamebanana.com/skins/26846

RedSword 06-20-2011 21:37

Re: [CS:S] Be Medic
 
Quote:

Originally Posted by sinblaster (Post 1492178)
There's some health related sounds in this zip. I couldn't find the one I was talking about but there's a couple of heartbeats and a few ambient machine sounds that may or may not help. If you want anything edited or made PM me red.

Those sounds are interesting; however I don't really see them in my plugin, since I never do anything when life is low; but that might be something to add; thank you. For the healing; I was more expecting "bandage unwrapping/wrapping" sound. A kind of sound that in other circumstances you would say "wtf is that", dunno if you understand my point of view ><.

Quote:

Originally Posted by smithy (Post 1492279)
Hi this plugin looks great i dont suppose you would be willing to add skin support

I have just recompiled this one from gamebanana to be used for server side

All credits go to orignal skin creator i just simply recompiled for server side use

http://www.gamebanana.com/skins/26846

Wow !!! Thanks for the tip; I never considered it.

I looked at your link and the model is awesome; however I would feel cheap if only a team had a custom medic model. I've searched all the skins on gamebanana for CS:S and I'm divided between those 3 for CTs :

(your) http://www.gamebanana.com/skins/26846 ; the best because of quality / redcross on arm IMO
(other1) http://www.gamebanana.com/skins/17594
(other2) http://www.gamebanana.com/skins/22318 ; really cool, but no redcross

Also; I'd like to know if HL2 models are compatible with CS:S (don't know much about models) ; because I'm considering those ones for the terrorists :

http://www.gamebanana.com/skins/screens/74684

... as there isn't much choices :'(.

But I'm definatly interested in adding those models and maybe remove my redcross overhead. Just missing a Terrorist one...

smithy 06-21-2011 02:45

Re: [CS:S] Be Medic
 
3 Attachment(s)
Quote:

Originally Posted by RedSword (Post 1492576)

Wow !!! Thanks for the tip; I never considered it.

I looked at your link and the model is awesome; however I would feel cheap if only a team had a custom medic model. I've searched all the skins on gamebanana for CS:S and I'm divided between those 3 for CTs :

(your) http://www.gamebanana.com/skins/26846 ; the best because of quality / redcross on arm IMO
(other1) http://www.gamebanana.com/skins/17594
(other2) http://www.gamebanana.com/skins/22318 ; really cool, but no redcross

I would be willing to recompile the other 2 just so you can have a choice of what you would like to use as its only a 5 min job per each model

1st Edit : Other two models now done ( again i take no credit for these simple recompile for server side , all credits go to orignal creators )


[IMG]http://img191.**************/img191/1223/ctmedic1.th.png[/IMG] [IMG]http://img200.**************/img200/131/ctmedic2.th.png[/IMG]


Quote:

Originally Posted by RedSword (Post 1492576)
Also; I'd like to know if HL2 models are compatible with CS:S (don't know much about models) ; because I'm considering those ones for the terrorists :

http://www.gamebanana.com/skins/screens/74684

... as there isn't much choices :'(.

These seem to be a bit more complex , and require the model to be hexted to the standard css models which is something i have yet to learn :(

Quote:

Originally Posted by RedSword (Post 1492576)
But I'm definatly interested in adding those models and maybe remove my redcross overhead. Just missing a Terrorist one...

Yes i agree i spent quite some time trying to search for a good terrorist skin but couldnt seem to find one , if it comes to it i will find a good t one or even your self and i will add a medic logo :up:

2nd edit Managed to find you this already done for server side / css

[IMG]http://img827.**************/img827/7397/medict.th.jpg[/IMG]

All credits go to s-low http://s-low.info/forum/viewtopic.php?f=11&t=103

best regards

smithy

RedSword 06-21-2011 08:40

Re: [CS:S] Be Medic
 
Quote:

Originally Posted by smithy (Post 1492643)
I would be willing to recompile the other 2 just so you can have a choice of what you would like to use as its only a 5 min job per each model

1st Edit : Other two models now done ( again i take no credit for these simple recompile for server side , all credits go to orignal creators )


[IMG]http://img191.**************/img191/1223/ctmedic1.th.png[/IMG] [IMG]http://img200.**************/img200/131/ctmedic2.th.png[/IMG]

Wow; thanx !

Quote:

Originally Posted by smithy (Post 1492643)
Yes i agree i spent quite some time trying to search for a good terrorist skin but couldnt seem to find one , if it comes to it i will find a good t one or even your self and i will add a medic logo :up:

2nd edit Managed to find you this already done for server side / css

[IMG]http://img827.**************/img827/7397/medict.th.jpg[/IMG]

All credits go to s-low http://s-low.info/forum/viewtopic.php?f=11&t=103

Thanks again; that'll be the "best" (strangely xD) terrorist medic model at the moment.

And also, do you have any link related to server model conversion (I'm interested), else from the valve developper community (or within; like http://developer.valvesoftware.com/w...piling_a_model) ?

I'll try to add models to my plugin in a near future,

Thanks,

Red

smithy 06-21-2011 13:40

Re: [CS:S] Be Medic
 
Yes my friend no problem

Basically i learned from this tutorial

http://www.mani-admin-plugin.com/joo...434&Itemid=128

With basically a lot of trial and error along the way


All times are GMT -4. The time now is 03:55.

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