Medicdance bot medics for JVbots 1.1

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Medicdance bot medics for JVbots 1.1

Post by bdbodger »

This is my script for bot medics it is called medicdance . what it does is when you are shot and your health is below 70 you are hidden and a bot is spawned in a crouch position . The bot's model tries to match you model but there is a default . If your health is above 50 you gain health until your health is above 70 then you can resume playing . If your health is 30 t0 50 then you gain health at a slower rate and the screen flashes like when you feel pain . If your health is below 30 you lose health untill you die or a medic reaches you or one of your buddies heals you . If it is one of your buddies then he is hidden and a bot is spawned that crouches and does the medic animations then stands and salutes you . There are 3 types of medics they are not solid and when not running to a player are crouched waiting . The human/multiplayer_allied_airborne_soldier.tik is used for the allies medic and the human/multiplayer_german_misc_worker.tik is used for the axis medic and the human/multiplayer_allied_oss_man.tik is used for the UN medic that medic will heal any team or can be used in ffa . There is a sample DM map in the pak called test_heal that you can play with a friend to see it used .You use the script like this .

main:
level waittill spawn

exec global/medicdance.scr

exec global/medicdance.scr::add_medic $medic_start[1].origin "allies"
exec global/medicdance.scr::add_medic $medic_start[2].origin "allies"
exec global/medicdance.scr::add_medic $medic_start[3].origin "un"
exec global/medicdance.scr::add_medic $medic_start[4].origin "axis"
exec global/medicdance.scr::add_medic $medic_start[5].origin "axis"
exec global/medicdance.scr::add_medic $medic_start[6].origin "un"

end


You can get it here
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Sounds like fun 8-)
Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

yea :roll:
Post Reply