Jump to content


Photo

Projectile problem


  • Please log in to reply
8 replies to this topic

#1 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 08 July 2008 - 12:40 PM

Okay, so I have a problem... My trebuchet rocks won't disappear after they've landed on target...
And it's really ruining the screen :)

Now, tell me what's causing this.. :)
;------------------------------------------------------------------------------
Object GondorTrebuchetRockProjectile_Bouncy

  Draw = W3DScriptedModelDraw ModuleTag_Draw
	DefaultModelConditionState
	  Model = GUSiegTreRk
	  ParticleSysBone	 = None TrebuchetRockTrail
	End
	IdleAnimationState
	  Animation			  = GUSiegTreRk
		AnimationName		= GUSiegTreRk.GUSiegTreRk
		AnimationMode		= LOOP
	  End
	End
  End


; *** AUDIO Parameters ***

  SoundAmbient = TrebuchetProjectileFlying


; ***DESIGN parameters ***
  EditorSorting	 = SYSTEM
  ArmorSet
	Armor = NoArmor
  End
  VisionRange = 0.0

; *** ENGINEERING Parameters ***
  KindOf = PROJECTILE
  Body = ActiveBody ModuleTag_03
	MaxHealth	   = 100.0
  End

  Behavior = DestroyDie ModuleTag_04
  ;nothing
  End
	
  Behavior = BezierProjectileBehavior ModuleTag_05
	FirstHeight = 20
	SecondHeight = 20
	FirstPercentIndent = 30%
	SecondPercentIndent = 80%
	TumbleRandomly = Yes
	CrushStyle = Yes
	BounceCount = 3
	BounceDistance = 60
	BounceFirstHeight = 15
	BounceSecondHeight = 10
	BounceFirstPercentIndent = 20%
	BounceSecondPercentIndent = 60%
	GroundHitWeapon   = NewGondorTrebuchetRockWarhead
	GroundBounceWeapon   = NewGondorTrebuchetCrush
	PreLandingStateTime = 1000
	PreLandingEmotion = DOOM
	PreLandingEmotionRadius = 20.0
  End
  
  Behavior = PhysicsBehavior ModuleTag_06
  End

;  Behavior = CreateObjectDie ModuleTag_07
;	DeathTypes = ALL
;	CreationList = OCL_GondorTrebuchetRockProjectileBits
;  End

  Behavior = FXListDie ModuleTag_08
	DeathTypes = ALL
	DeathFX = FX_TrebuchetImpactHit
  End

  Geometry = Sphere
  GeometryIsSmall = Yes
  GeometryMajorRadius = 0.8
  Shadow				= SHADOW_VOLUME
End

And to ease the burden, here's the original;
;------------------------------------------------------------------------------
Object GondorTrebuchetRockProjectile

; *** ART Parameters ***
  Draw = W3DScriptedModelDraw ModuleTag_Draw
	DefaultModelConditionState
	  Model = GUSiegTreRk
	  ParticleSysBone	 = None TrebuchetRockTrail
	End
	IdleAnimationState
	  Animation			  = GUSiegTreRk
		AnimationName		= GUSiegTreRk.GUSiegTreRk
		AnimationMode		= LOOP
	  End
	End
  End


; *** AUDIO Parameters ***

  SoundAmbient = TrebuchetProjectileFlying


; ***DESIGN parameters ***
  EditorSorting	 = SYSTEM
  ArmorSet
	Armor = NoArmor
  End
  VisionRange = 0.0

; *** ENGINEERING Parameters ***
  KindOf = PROJECTILE
  Body = ActiveBody ModuleTag_03
	MaxHealth	   = 100.0
  End

  Behavior = DestroyDie ModuleTag_04
  ;nothing
  End
	
  Behavior = BezierProjectileBehavior ModuleTag_05
	DetonateCallsKill = Yes
	FirstHeight = 73;50; Height of Bezier control points above highest intervening terrain
	SecondHeight = 100;157
	FirstPercentIndent = 30%; Percentage of shot distance control points are placed
	SecondPercentIndent = 70%
	FlightPathAdjustDistPerSecond = 0; Units are their speed.
	InvisibleFrames = 100;
	FadeInTime = 100;
	PreLandingStateTime = 1000
	PreLandingEmotion = DOOM
	PreLandingEmotionRadius = 20.0
  End

  Behavior = PhysicsBehavior ModuleTag_06
  End

;  Behavior = CreateObjectDie ModuleTag_07
;	DeathTypes = ALL
;	CreationList = OCL_GondorTrebuchetRockProjectileBits
;  End

  Behavior = FXListDie ModuleTag_08
	DeathTypes = ALL
	DeathFX = FX_TrebuchetImpactHit
  End

  Geometry = Sphere
  GeometryIsSmall = Yes
  GeometryMajorRadius = 0.8
  Shadow				= SHADOW_VOLUME
End

And, as far as I can tell, only the BezierProjectileBehavior are different from the two... And the name, yeah :p
So I don't really know why it acts the way it does... Neither the FX's or the rock itself is ever going away.. It just keeps
spinning like it does in the air, when it lands, and bounces a couple of times in a direction, then stops.. But it only stops
to move, not to spin around...

I'm clueless, please help if you see any problem, or know how to solve it :p

edit: I've WinMerged the two, while changing that Behavior, and it doesn't give any differences...

Edited by Lauri, 08 July 2008 - 12:45 PM.

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#2 Rob38

Rob38

    Believer of Hope

  • Hosted
  • 3,567 posts
  • Location:USA
  • Projects:Helm's Deep Last Hope
  •  One who is not afraid of new challenges

Posted 08 July 2008 - 06:15 PM

Try keeping "DetonateCallsKill = Yes" in the bezier behavior. And if that does not work, maybe you should try adding a timer like the summon units have. :)

signature_group1.gif

 

16821.png


#3 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 08 July 2008 - 07:07 PM

what the...
And why haven't I seen that little line before?
I though I had it checked clean... :)

Thanks for the point out, might be what I'm looking for :) (Or just make it not bounce at all any more...)

edit: nope, didn't help... might have to remove it, or make it "summoned"...

Edited by Lauri, 08 July 2008 - 08:02 PM.

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#4 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 12 August 2008 - 03:32 PM

bumpy dump

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#5 GothmogtheOrc

GothmogtheOrc

    Ruler of the Morgul Vale

  • Hosted
  • 2,263 posts
  • Location:USA
  • Projects:Kings of the West Mod
  •  T3A Chamber Member - Retired

Posted 12 August 2008 - 05:52 PM

Why not add a SlowDeath behavior? Or a faded death after X amount of time. As your code stands in the first post you have nothing controlling death and disapearance hence the fact nothing happened :p

Edit: oh and does this do what I think it does? Make the rocks roll and kill troops before they disapear? Does it look cool? :rolleyes: I've always wanted to play with this but never did.

-Gto

Edited by GothmogtheOrc, 12 August 2008 - 05:54 PM.

Nine%20rings.jpg
Click on my Sig to go to my BFME Modding site where you can download my mods.
KotW%20Morgul%20In-game.jpg
Kings of the West Mod Leader
*Retired. PM me if you need to get a hold of me as I'll get an email notification and should reply within a day or so*


#6 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 12 August 2008 - 09:01 PM

I guess I don't really have much of a choice :p

Yeah, it looks cool... Only problem is... It doesn't disappear :rolleyes:

edit: I might remove it though..
'Cause the rock's gonna spin until it disappears, and I don't think I'll be able to match the stop of it (where it lands the last time) :unsure:

Edited by Lauri, 12 August 2008 - 09:03 PM.

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#7 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 15 September 2008 - 11:46 PM

So it's just the regular EA projectile and won't disappear? What parts have you edited exactly?
Software is like sex; it's better when it's free ~Linus Torvald

#8 Ringwraith Captain

Ringwraith Captain
  • Members
  • 46 posts

Posted 25 September 2008 - 01:20 AM

I've seen a couple of mods, S.E.E and RJ-ROTWK I think, that make projectiles bounce once upon landing. Theirs works fine, no projectiles sticking around on the ground. Why don't you have a look at their code and see how they did it? Granted, those mods aren't for BFME1, but that shouldn't cause any problems.

#9 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 25 September 2008 - 03:22 PM

@ched:
late, but didn't know you asked me :thumbsupsmiley:
I only edited the parts about the BezierProjectileBehavior...

@Ringwraith:
Hm.. I'll look into that :unsure:

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users