Bowcaster bolt

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
hunting shadow
Private First Class
Posts: 79
Joined: Sun Jan 18, 2009 11:37 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the wilderness of Mandalore
Contact:

Bowcaster bolt

Post 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.
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Bowcaster bolt

Post 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.
User avatar
hunting shadow
Private First Class
Posts: 79
Joined: Sun Jan 18, 2009 11:37 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the wilderness of Mandalore
Contact:

Re: Bowcaster bolt

Post 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
User avatar
hammythepig
Master Sergeant
Master Sergeant
Posts: 175
Joined: Mon Nov 24, 2008 6:05 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Canada

Re: Bowcaster bolt

Post 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!!!
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Bowcaster bolt

Post 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.
User avatar
hammythepig
Master Sergeant
Master Sergeant
Posts: 175
Joined: Mon Nov 24, 2008 6:05 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Canada

Re: Bowcaster bolt

Post by hammythepig »

That might actually work, I think thats a good idea.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Bowcaster bolt

Post 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.
User avatar
hunting shadow
Private First Class
Posts: 79
Joined: Sun Jan 18, 2009 11:37 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the wilderness of Mandalore
Contact:

Re: Bowcaster bolt

Post 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]
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Bowcaster bolt

Post by RogueKnight »

Try changing it from "sticky" to "bolt"
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Bowcaster bolt

Post by Frisbeetarian »

Then it doesn't bounce, he is correct in using sticky for what he wants.
Post Reply