Why the Homing code from DCX will crash everything down?

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Why the Homing code from DCX will crash everything down?

Post by Dennis|8749236 »

I moved the DCX code into a new mod, and i add it to a rocket, the rocket is a AA Weapon, and, after i fired it, when it get close to a vehicle, it will smash on that object(it is a moving object) and make it explode..
how do i solve this problem?
Last edited by Dennis|8749236 on Fri Mar 25, 2011 1:41 pm, edited 1 time in total.
What is the meaning of Life?? (Don't think about it!)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Why the Homing code from DCX will crash everything down?

Post by Swaffy »

Uh ... you are firing a rocket at a vehicle and you don't want the rocket to explode?
What are you asking?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
POTAmatt
Posts: 89
Joined: Mon Dec 07, 2009 9:09 pm
Location: New Yawk

Re: Why the Homing code from DCX will crash everything down?

Post by POTAmatt »

You mean ObjectTemplate.explodeNearEnemyDistance? Look at the Flak38_Projectile.
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Why the Homing code from DCX will crash everything down?

Post by Dennis|8749236 »

If i fired it on a mobile vehicle, i will die after i fired it..
when the rocket get close to another moving vehicle, it will smash that vehicle first (just like u smash a plane into ground) and then explode...
it will not count into my score..
What is the meaning of Life?? (Don't think about it!)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Why the Homing code from DCX will crash everything down?

Post by Swaffy »

The only help I can give you: Look at the Wasserfall rocket in SWoWWII.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Why the Homing code from DCX will crash everything down?

Post by Dennis|8749236 »

That rocket is not a PCO..
What is the meaning of Life?? (Don't think about it!)
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Why the Homing code from DCX will crash everything down?

Post by Apache Thunder »

Uhm....yes it is a PCO....Have you even looked at the code for it? (PCO = PlayerControlObject)
ImageImageImage
I have cameras in your head!
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Why the Homing code from DCX will crash everything down?

Post by Dennis|8749236 »

i mean my rocket is not a PCO..
Wasserfall is..
What is the meaning of Life?? (Don't think about it!)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Why the Homing code from DCX will crash everything down?

Post by Swaffy »

Two things I want to say:

1 - Homing missiles do not work in BF1942.
2 - Your rocket needs to be a PCO, if I understand the situation correctly.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Why the Homing code from DCX will crash everything down?

Post by Dennis|8749236 »

hmm..
i solved this problem now..
i forgot to define the material ID..
What is the meaning of Life?? (Don't think about it!)
Post Reply