You are not logged in.
Probably some ai state. chr_peace or something. You need to disable it. ![]()
Iritscen: ![]()
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
ya ive been looking around for that command cause it would be cool to just have ur chunp killing everyone for u
Awol
Offline
yeah so they can clap and cheer while getting beaten up
"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."
Offline
Hey guys, I'm trying to make a script but I'm stuck by this problem
var int count=0;
func main(void)
{
chr_teleport 0 0
ai2_spawn hall_striker_2
chr_teleport hall_striker_2 0
fork rebirth
}func rebirth
{
chr_wait_health hall_striker_2 0
sleep 300
chr_full_health hall_striker_2
count=count+1;
fork rebirth
}
My plan is to make the striker rebirth each time he dies and score 1 point for me. But after he died, he just stand still, he doesn't attack me, but he still look at me even I try to run to other place. How can I make him to attack me?
(put that script into level 2 and try)
Last edited by love_Oni (06/12/09 08:06)
The Boy Who Knew Too Much ![]()
Offline
It's a known fact (bug?) that once a character dies, they lose their AI. Looking at a script I started writing once, I got around this problem by using chr_unkillable() to make the AI unable to die (he can still lose HP, though). I then monitored his health, and if it went below a certain level I counted that as a "death" and "respawned" him (teleported him back to his starting position).
Check out the Anniversary Edition Seven at !
Offline
Hmm. I do have an Idea as for spawn coordinates. Each bullet leaves a mark yes? The system has to know where to place a mark, use those then!
"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba
Offline
The coordinates of decals (bullet marks) are not accessible in BSL.
Check out the Anniversary Edition Seven at !
Offline
Then how about droping weapon? Are those avalible ?
"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba
Offline
The location of weapons? Nope, can't get those either. Flags are pretty much the only spots you can work with. We've gotten accustomed to just adding them into the BINACJBOFlag file for a given level; it's pretty easy with the new XML export/import feature in OniSplit.
Check out the Anniversary Edition Seven at !
Offline
Then I have no Ideas. Just waiting for results then :3 . God that would be so much fun!
"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba
Offline
If you want to create a flag heres how
i haven't tried it, but go into developpers mod and type in
chr_debug_characters=1
in the window that pops up, you should show the coordinates of where ur standing. If you open up the BINACJBOFlags
copy one of the flags (any one) chnge the flag ID to sumthin that hasnt been used, and change the coords to where ur standing i beleive this creates a new flag... if thats what u wanted, im not sure what u want ![]()
"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."
Offline
i haven't tried it, but go into developpers mod and type in
chr_debug_characters=1
in the window that pops up, you should show the coordinates of where ur standing. If you open up the BINACJBOFlags
copy one of the flags (any one) chnge the flag ID to sumthin that hasnt been used, and change the coords to where ur standing i beleive this creates a new flag... if thats what u wanted, im not sure what u want
That is exactly what you need to do. ![]()
Iritscen: ![]()
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
I tried chr_unkillable(), but it doesn't work.
This is what I tried:
var int count=0;
func main(void)
{
chr_teleport 0 0
ai2_spawn hall_striker_2
chr_teleport hall_striker_2 0
fork rebirth
}func rebirth
{
chr_wait_health hall_striker_2 0
chr_unkillable hall_striker_2 1
sleep 300
chr_full_health hall_striker_2
count=count+1;
chr_unkillable hall_striker_2 0
fork rebirth
}
Last edited by love_Oni (06/12/09 21:06)
The Boy Who Knew Too Much ![]()
Offline
chr_unkillable makes it so their health can never go below 1. So...your function has a lot of problems with it. ![]()
Iritscen: ![]()
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
So where should I try to correct?
EDIT: do you mean like this?
var int count=0;
func main(void)
{
chr_teleport 0 0
ai2_spawn hall_striker_2
chr_teleport hall_striker_2 0
fork rebirth
}func rebirth
{
chr_wait_health hall_striker_2 2
chr_unkillable hall_striker_2 1
sleep 300
chr_full_health hall_striker_2
count=count+1;
chr_unkillable hall_striker_2 0
fork rebirth
}
Last edited by love_Oni (06/13/09 03:06)
The Boy Who Knew Too Much ![]()
Offline
var int count=0;
func main(void)
{
chr_teleport 0 0
ai2_spawn hall_striker_2
chr_teleport hall_striker_2 0
chr_unkillable hall_striker_2 1
fork rebirth
}
func rebirth
{
chr_wait_health hall_striker_2 1
sleep 300
chr_full_health hall_striker_2
count=count+1;
fork rebirth
}Iritscen: ![]()
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
Yeah, it works now.
The Boy Who Knew Too Much ![]()
Offline
yeah, if i'd been on earlier i woulda said to put it's health at 1 ![]()
alhough, i have a script, and if one of the people in it die, two others gain i think 150 hp, but its happened that one them has died, then the one who triggered the hp gain and the dead one comes back with 150 hp, but just stand there
its weird
Mukade wrote:Probably some ai state. chr_peace or something. You need to disable it.
chr_active might work...
Last edited by Mukade (06/13/09 12:06)
"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."
Offline
Bump
"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba
Offline
bump?
"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."
Offline
Why the bumps?
Check out the Anniversary Edition Seven at !
Offline
To ask if things got done ;]
"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba
Offline