health----->Shots----->Packs
Moderator: Moderators
health----->Shots----->Packs
I was wandering if it will be possible to make a weapon that looks like a needle but GIVES you life instead of takes away life? I mean make a shader to only shoot it like 1 foot away from you? So when Someone calls "Medic" you can run up to them and hit shoot key and it will give them health just like a health pack. Is that possible any one want to start up that project?
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
you'll see in the weapon .tik files the bullets do a certain amount of damage, if you create the new weapon, make it selectable with a new key, then give the damage a - figure, then the damage will be reversed (if you find the whole (player.health = (player.health - bulletdamage)) not sure excatly on that but would be something similar) then minusing a negative figure will add the health,
altervatively, if you want some1 to be medic you could give it a spawn point where they would get a new targetname, around this spawnpoint they would carry a trigger with them (binding), and then add in a piece of script
if $medic istouching $player
$player.health = ($player.health + 25) //player health will gain 25 from touching the medic,
altervatively, if you want some1 to be medic you could give it a spawn point where they would get a new targetname, around this spawnpoint they would carry a trigger with them (binding), and then add in a piece of script
if $medic istouching $player
$player.health = ($player.health + 25) //player health will gain 25 from touching the medic,
hope this helps, prob not cos it's all foreign 2 me :-/
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
bloody hell u really don't want much do ya 
for you 2 do all this work just so some1 can pick up an injection needle, there is waaaaaayyyyyyyyy too much work involved,
! 1. creating the new anim
! 2. creating the new .tik file
! 3. creating the new keypress (8) possibly to activate the needle
! 4. getting people 2 reply and put u off the thought b4 it gets out of hand
but really tho... it is possible... but do you know what ur letting urself in 4?
for you 2 do all this work just so some1 can pick up an injection needle, there is waaaaaayyyyyyyyy too much work involved,
! 1. creating the new anim
! 2. creating the new .tik file
! 3. creating the new keypress (8) possibly to activate the needle
! 4. getting people 2 reply and put u off the thought b4 it gets out of hand
but really tho... it is possible... but do you know what ur letting urself in 4?
hope this helps, prob not cos it's all foreign 2 me :-/
-
General Specific
- Corporal
- Posts: 27
- Joined: Fri Mar 21, 2003 2:42 am
also, for this to work you will need to have Freindly Fire on - i'm guessing this would work the same way as a normal gun, of you can't do damage <b>TO</b> them, then how are you going to take damage <b>FROM</b> them? you'd havwe to work out some kind of way of getting around the wjole FF thing, which would probably require lots of scripting and a custom config file, which would proably nee to be server side, and it would have to only allow THE NEEDLE to repair health, otherwise you would have people TKing all over the place, i mean most servers run with FF off, anyway, that's just what i think, but i don't know crap about moddeling of scripting

<i>"We are not retreating - we are advancing in another Direction."
- General Douglas MacArthur (1880-1964)</i>
<img src="http://www.angelfire.com/ns2/12345/planesigavo2.gif">
- General Douglas MacArthur (1880-1964)</i>
<img src="http://www.angelfire.com/ns2/12345/planesigavo2.gif">
