a mod idea needs help to script
Moderator: Moderators
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
a mod idea needs help to script
I have this thing where I want to make a weapon mod to go with it. The weapon mod will be set so all guns will give a total kill if you are struck in the heart or the head. All other hit points will give only 5 damage or force a script on you that makes you fall down and then roll around calling help. As well as that I will be making a healing weapon (not sure exactly wich one just yet) and in the script all players will get all weapons so all the guys can heal someone.
So thats the weapon mod now the script that I want to build and need help with will be for my level scr and I am hoping a scripter will write it for me how its sposed to go.
the level script:
player = parm other // I guess
if player health 95 or less player anim death ( at this point we freeze the player and give him a thrd person view, I will do a rolling on ground ooh I'm hurt animation also he will play a help help kinda sound, )
at that point the idea is a team mate will come help him (otherwise he is given a bleedout time of 20 or 30 seconds) I want it so you have to shot in the head or heart to kill a player else then the player will lay there till a friend helps (heals) or he bleeds out.
So the idea is you could shoot a player in the arm or leg all day and he wont die
Also we need a tiny delay so when 2 guys meet if they hit each other in leg or arm they both fall down even if one shot the other a little later .5 of a second or soemthing like that.
Gameplay wise you could deliberatly injure other team to camp and wait for his friend or just to slow down theyre advance.
Its a lot to ask but I will try it myself anyway. I just hope some of you guys like it and help it along.
Thanks
So thats the weapon mod now the script that I want to build and need help with will be for my level scr and I am hoping a scripter will write it for me how its sposed to go.
the level script:
player = parm other // I guess
if player health 95 or less player anim death ( at this point we freeze the player and give him a thrd person view, I will do a rolling on ground ooh I'm hurt animation also he will play a help help kinda sound, )
at that point the idea is a team mate will come help him (otherwise he is given a bleedout time of 20 or 30 seconds) I want it so you have to shot in the head or heart to kill a player else then the player will lay there till a friend helps (heals) or he bleeds out.
So the idea is you could shoot a player in the arm or leg all day and he wont die
Also we need a tiny delay so when 2 guys meet if they hit each other in leg or arm they both fall down even if one shot the other a little later .5 of a second or soemthing like that.
Gameplay wise you could deliberatly injure other team to camp and wait for his friend or just to slow down theyre advance.
Its a lot to ask but I will try it myself anyway. I just hope some of you guys like it and help it along.
Thanks
- williewisp
- First Lieutenant
- Posts: 208
- Joined: Fri May 16, 2003 1:10 pm
- Location: ireland
wud it not b better if the player cud choose wich type of guns they wanted.
eg.
1.set
sniper, silenced pistol. (for Stealth
2.set
heavy gun's. machine guns etc...
3.set
that heal gun, and 1 or 2 other guns.
(and this wud the only set for the heal gun)
it's just a suggestion r a helpfull idea!.
if you go a head wit the mod.
eg.
1.set
sniper, silenced pistol. (for Stealth
2.set
heavy gun's. machine guns etc...
3.set
that heal gun, and 1 or 2 other guns.
(and this wud the only set for the heal gun)
it's just a suggestion r a helpfull idea!.
if you go a head wit the mod.
it's not a time for thinking its a time for drinking!
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
Ueah that sounds good tho I do want everyone to be able to heal, otherwise its narrowed down too much as to who will heal, I guess many guys wont even want to heal soemone so it ups the chances of getting healed if everyone can do it. Maybe if I can get the right click on the pistol to do the healing that might be good.willie the wisp wrote:wud it not b better if the player cud choose wich type of guns they wanted.
eg.
1.set
sniper, silenced pistol. (for Stealth
2.set
heavy gun's. machine guns etc...
3.set
that heal gun, and 1 or 2 other guns.
(and this wud the only set for the heal gun)
it's just a suggestion r a helpfull idea!.![]()
if you go a head wit the mod.
Thanks for input man.
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
well in ww2 evey soldier had to be trained to use a simlpe medic kit. they've advanced now but it was just powdered morphine to first be applied to the wound and some of that mesh like stuff to wrap it around tightly with. they also had a stick that was rigid to make the knot tight. they would twist it and it would cut circulation off. again its very primitive but it worked. each soldier had 1 kid and was really only good one time, since there wasnt a lot of morphine, and bloddy tie stuff aint good lol. they also had to talk to the woudned guy, calm him down and stuff so blood would come out faster, i bet YOU could make a littel talk sequence huh. yea thats pretty much it, gramps knew a medic and they were "war buddies" so to speak.

- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
Oh thanks for that man.
Now with my script to get started I need to know if I can do .......
if player health less than 95 but greater than 5 thread ............
then I can do a script where I get the player to anim my hurt anim and play help sound and also freeze him and remove player physics or whatever i have to do. At that point I will have to have something where if his health comes back up he is restored.
Thanks
Now with my script to get started I need to know if I can do .......
if player health less than 95 but greater than 5 thread ............
then I can do a script where I get the player to anim my hurt anim and play help sound and also freeze him and remove player physics or whatever i have to do. At that point I will have to have something where if his health comes back up he is restored.
Thanks
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
heya matey 
i know that there are some codes that you can use for ai but not sure if you'll be able to use it for $player
but if you can have
on each spawn point
key: thread
value: setup
setup:
parm.other waittill pain
if ((parm.other.health > 4) && (parm.other.health < 96))
{
local.new_player = spawn etc... new model to match the player
parm.other physics_off
goto setup
}
else
{
goto setup
}
something like that would be the basis of it, but then you need to fanny around doing the rest of the camera tricks and making a new .tik for a weapon to add health back to the player
i know that there are some codes that you can use for ai but not sure if you'll be able to use it for $player
but if you can have
on each spawn point
key: thread
value: setup
setup:
parm.other waittill pain
if ((parm.other.health > 4) && (parm.other.health < 96))
{
local.new_player = spawn etc... new model to match the player
parm.other physics_off
goto setup
}
else
{
goto setup
}
something like that would be the basis of it, but then you need to fanny around doing the rest of the camera tricks and making a new .tik for a weapon to add health back to the player
hope this helps, prob not cos it's all foreign 2 me :-/
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
Ok at the moment I am trying this.
end
setup_sumomod:
locprint 300 300 "sumomod"
local.player = parm.other
if (local.player.health != 100)
{
while (player.health < 99)
freezeplayer
}
else
{
while (player.health > 98)
releaseplayer
}
end
btw I am reading all the docs on scripting g_allclasses and script files.txt . I am really trying hard.
But I get this error when I try to do < or > ..............
while (player.health > 98) (maps/obj/obj_sumomod.scr, 30)
while (player.health ^
^~^~^ Script Error: binary '>' applied to incompatible types 'const string' and 'int'
end
setup_sumomod:
locprint 300 300 "sumomod"
local.player = parm.other
if (local.player.health != 100)
{
while (player.health < 99)
freezeplayer
}
else
{
while (player.health > 98)
releaseplayer
}
end
btw I am reading all the docs on scripting g_allclasses and script files.txt . I am really trying hard.
But I get this error when I try to do < or > ..............
while (player.health > 98) (maps/obj/obj_sumomod.scr, 30)
while (player.health ^
^~^~^ Script Error: binary '>' applied to incompatible types 'const string' and 'int'
-
vonderbakluft
- Corporal
- Posts: 46
- Joined: Fri Aug 01, 2003 11:15 am
- Location: NL
- Contact:
