Page 1 of 1

Bowcaster bolt

Posted: Wed Apr 29, 2009 8:33 am
by hunting shadow
I have a short question: I want to make a real bolt for the bowcaster, wich rebounds of walls and terrain. I already made the .msh and an .odf and I tried it ingame. It works fine, but when i shot the bolt for example in a house, it rebounds endless between the walls. Is there a possibiltity to get the bolt to "die" after a certain time? I mean, u shoot the bolt, and after 30 seconds it goes away.

Re: Bowcaster bolt

Posted: Wed Apr 29, 2009 9:11 am
by RogueKnight
I don't have the code off the top of my head, but I know you could look in the ewok spear ODF and fine a line that looks like this

Code: Select all

LifeSpan 		= "30.0"
Add that line into your bowcaster's _ord odf and the bouncy bolt should go away in 30 seconds.


EDIT: I just realized that I do have the code off the top of my head.

Re: Bowcaster bolt

Posted: Wed Apr 29, 2009 10:30 am
by hunting shadow
I already have tis line, but problem is, that lifespann is just applied when if the bolt sticks at a person. Then it would disapear after 30 seconds. but as long as its flying, the lifespann is not applied, it can fly as long as it want to, that's the problem

Re: Bowcaster bolt

Posted: Wed Apr 29, 2009 4:12 pm
by hammythepig
I don't know how to help you, but that would be an amazing gun in a map such as Polis Massa or Tantive IV!!!

Re: Bowcaster bolt

Posted: Wed Apr 29, 2009 4:55 pm
by Blade
Would you be able to cap its range? I'm not sure if this would work while it's rebounding, but I know that other ords just disappear after they've traveled a certain distance. So just give it less range than it has at present time, and it might work.

Re: Bowcaster bolt

Posted: Wed Apr 29, 2009 4:57 pm
by hammythepig
That might actually work, I think thats a good idea.

Re: Bowcaster bolt

Posted: Wed Apr 29, 2009 4:58 pm
by Fiodis
Blade wrote:Would you be able to cap its range? I'm not sure if this would work while it's rebounding, but I know that other ords just disappear after they've traveled a certain distance. So just give it less range than it has at present time, and it might work.
Velocity and Lifespan = Range.

Re: Bowcaster bolt

Posted: Thu Apr 30, 2009 8:11 am
by hunting shadow
The problem is, that i think i have to set it up as sticky, because as missile it does not rebound. And a sticky's lifespann is just aplied when it lies on the ground or sticks at sth.. My bolt has gravity 0 and so it will never lie on the ground. Here is my odf, perhaps it helps:
Hidden/Spoiler:
[code][OrdnanceClass]
ClassLabel = "sticky"

[Properties]
GeometryName = "hun_weap_bowcaster_bolt2"
ExplosionName = "rep_weap_inf_EMP_exp"
ExplosionExpire = "rep_weap_inf_EMP_exp"
TrailEffect = "spa4_sfx_lasertrail"


LightColor = "64 224 64 150"
LightRadius = "4.0"

Damage = "150.0"

LifeSpan = "0.01"
Velocity = "100.0"
Gravity = "0.0"
Rebound = "3.0"
Friction = "0.0"

Push = "10.0"
PushDeadOnly = "0"

MinRange = "20"
OptimalRange = "35"
MaxRange = "50"

StickPerson = 1
StickAnimal = 1
StickDroid = 1
StickVehicle = 0
StickBuilding = 1
StickBuildingDead = 0
StickBuildingUnbuilt= 0
StickTerrain = 0

CollisionOtherSound = "com_weap_inf_grenade_bounce"
CollisionWaterSound = "imp_inf_trooper_land_water"

ImpactEffect = "com_sfx_sabredehit"[/code]

Re: Bowcaster bolt

Posted: Thu Apr 30, 2009 8:40 am
by RogueKnight
Try changing it from "sticky" to "bolt"

Re: Bowcaster bolt

Posted: Thu Apr 30, 2009 9:50 am
by Frisbeetarian
Then it doesn't bounce, he is correct in using sticky for what he wants.