MG42 gunner not spawned.

Post your scripting questions / solutions here

Moderator: Moderators

Colli
Corporal
Posts: 27
Joined: Sat Jan 04, 2003 11:27 pm
Location: Belgium
Contact:

Post by Colli »

Don't worry, that is just a typo. I checked and it is indeed "$targetname".
So that's not it... What is wrong? I'm about to give up :cry:

BTW, it is properties, not proporties like i typed before.
English is not my primary language, so cut me some slack...
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Make sure your worldspawn doesn't have a targetname. :?
Image
Colli
Corporal
Posts: 27
Joined: Sat Jan 04, 2003 11:27 pm
Location: Belgium
Contact:

Post by Colli »

Worldspam properties:
--------------------------
ambient = 30 30 30
ambientlight = 30 30 30
angle = 0
classname = worldspam
suncolor = 70 70 70
sundirection = 180

Nope, no targetname in there...
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Ok, I just asked because I've seen worldspawn targetnames cause more unexplainable errors. :wink:

Any errors in the consoloe by the way?
Image
Colli
Corporal
Posts: 27
Joined: Sat Jan 04, 2003 11:27 pm
Location: Belgium
Contact:

Post by Colli »

Yes, yes, YEEEEEEEEEEEESSSSSSSSSSS....

Script error!!!

I checked my script 10 times, but always overlooked this little screw-up. :oops:
I apperently typed mg41 instead of mg42 :shock:

Okay, here is my final question :wink:
The spawned gunners always run for their mg and then they crouch.
This means that when the spotter see me, the gunner starts firing the mg in the air before he stands up.

Is there a way to NOT make the gunner crouch?
BTW, the "crouch" option is NOT checked in the info_pathnote...
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Nope that's not possible, you have to blame the developers of mohaa for that. They used the sloppy time delay before firing method because the 'waittill ontarget' statement often causes a fatal crash of the game :x .

Mg gunners always crouch, unless shooting down. That's just how the game handles their animations. No possibility to change that without the source code I think.
Image
Post Reply