bouncing lasers?

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
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

bouncing lasers?

Post by ryukaji »

is there a way to make pistol bullets bounce of terrain because the
rebound = "1" doesnt seem to do it
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: bouncing lasers?

Post by Fiodis »

That's because it has classlabel = "bolt". Bolt's can't bounce. You can get around this by making it as....well, I forget, but check out the ODF of Skyhammer's snoutgun. It has ordance that rebounds off terrain and sticks to units.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: bouncing lasers?

Post by ryukaji »

well thats not exactly the same bounce I meant, I meant like rebound off the terrain once not bounce like a bouncy ball
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: bouncing lasers?

Post by Fiodis »

Oh, that bouncy ball effect can be tweaked via some ODF line, I think it's "Gravity = "*something, not sure what*".
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: bouncing lasers?

Post by MileHighGuy »

gravity doesnt make things bonce, it makes the have gravity,so it makes them go down
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: bouncing lasers?

Post by ryukaji »

No, read what I said again I dont want the bouncy ball effect I want the bullet to ricochet off walls and terrain
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: bouncing lasers?

Post by MileHighGuy »

i was just explaining that the gravity line doesnt do what your asking, sorry for the misunderstanding
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: bouncing lasers?

Post by ryukaji »

MileHighGuy wrote:i was just explaining that the gravity line doesnt do what your asking, sorry for the misunderstanding
Actually i was talking more to Fiodis because he misread what I had posted before, and yeah gravity doesnt make someting bounce.
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: bouncing lasers?

Post by Fiodis »

Really? I always found that setting that line to "0" made them unaffected by gravity, travelling in a straight line. Then, if they bounce off walls....well, that's a ricochet, yes?
Null_1138
Jedi
Jedi
Posts: 1192
Joined: Thu Oct 16, 2008 4:05 pm

Re: bouncing lasers?

Post by Null_1138 »

Skyhammer 216 made a disc gun that shoots discs that bounce of walls and terrain. I guess all you have to do is change the .msh of the disc. Ask him (Not over PM, that's against the rules).
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: bouncing lasers?

Post by Fluffy_the_ic »

And then there's assajj's starblades. They're pretty darn similar. But I know that Sky released the discgun. Search through its odf for some sort of function that seems to make sense for it.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: bouncing lasers?

Post by Sky_216 »

Discgun ord ODF:
Hidden/Spoiler:
[OrdnanceClass]
ClassLabel = "sticky"

[Properties]
GeometryName = ""
ExplosionName = "her_weap_discgun_exp"
ExplosionExpire = "her_weap_discgun_exp"
TrailEffect = "spa1_sfx_lasertrail"

LightColor = "43 43 253 150"
LightRadius = "4.0"

Damage = "150.0"

LifeSpan = "1.0"
Velocity = "200.0"
Gravity = "0.7"
Rebound = "1.0"
Friction = "1.0"

Push = "3"
PushDeadOnly = "0"

MinRange = "20"
OptimalRange = "60"
MaxRange = "100"

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

CollisionOtherSound = "com_weap_inf_grenade_bounce"
CollisionWaterSound = "imp_inf_trooper_land_water"

ImpactEffect = "com_sfx_sabredehit"
How to make it work for lasers:

1)Make a particle effect that looks like a lasar. Set it as the trail.
2) Put gravity to 0.1 (do not put it to 0).
3) Increase velocuity, decrease lifespan.
4)It'll bounce until lifespan expires. The higher the velocity (don't set it to high or your effect won't work!)and shorter the lifespan, the less you'll get the bouncy ball effect.

Sticky type weapons are very versatile......
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: bouncing lasers?

Post by ryukaji »

Thanks I should have thought of the discgun cause i downloaded that ( and I used it in my Sulon: Canyon Wars map) but then i wouldnt have known how to make it lasery so ill try it out when i get the chance
Post Reply