Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: MetalDestroyer on January 07, 2006, 06:16:48 am

Title: Give more size to asteroids
Post by: MetalDestroyer on January 07, 2006, 06:16:48 am
Actually asteroids from MediaVP 3.6.7 and 3.6.8 are beautiful but seem to be a little too tiny for Star Wars universe (remember the asteroid belt in SW: TESB). And so, i decided to modify these asteroid within POF CS 1.x. Unfortunately, during in-game mission, I can't lock any of these asteroid (the biggest size is 4400 meters long) and when they are destroyed (or seem to be destroyed) they just disappear like when a ship warp out without his warp effect.

What's wrong ?
Title: Re: Give more size to asteroids
Post by: Wanderer on January 07, 2006, 06:34:02 am
Have you altered asteroid.tbl? it handles among other things the explosion radius of the asteroids.
Title: Re: Give more size to asteroids
Post by: MetalDestroyer on January 07, 2006, 06:35:59 am
I've just modified the asteroid pof filename.

Here the code :

Code: [Select]
#Asteroid Types

$Name: Small Asteroid
$POF file1: asteroid.pof
$POF file2: asteroid.pof
$POF file3: asteroid.pof
$Detail distance: (0, 530, 1580, 2150)
$Max Speed: 130.0
$Expl inner rad: 0.0
$Expl outer rad: 0.0
$Expl damage: 0.0 ;; set to zero for no area effect
$Expl blast: 0.0
$Hitpoints: 850 ;; Note, modified downward by Skill_level

$Name: Medium Asteroid
$POF file1: asteroid03.pof
$POF file2: asteroid03.pof
$POF file3: asteroid03.pof
$Detail distance: (0, 520, 1240, 2400)
$Max Speed: 90.0
$Expl inner rad: 25.0
$Expl outer rad:  75.0
$Expl damage: 20.0 ;; set to zero for no area effect
$Expl blast:      1000.0
$Hitpoints: 66 ;; Note, modified downward by Skill_level

$Name: Large Asteroid
$POF file1: ast01.pof
$POF file2: asta01.pof
$POF file3: astb01.pof
$Detail distance: (0, 585, 1350, 2600)
$Max Speed: 160.0
$Expl inner rad: 100.0
$Expl outer rad: 200.0
$Expl damage: 50.0 ;; set to zero for no area effect
$Expl blast: 3000.0
$Hitpoints: 147 ;; Note, modified downward by Skill_level
Title: Re: Give more size to asteroids
Post by: Wanderer on January 07, 2006, 06:47:52 am
I mean that if you have too small values in: $Expl inner rad: and Expl outer rad: you might not see the explosions at all. Try setting higher values for those. Though i must admit that i have never altered those values...
Title: Re: Give more size to asteroids
Post by: MetalDestroyer on January 07, 2006, 07:09:11 am
I change the explo value, and no result. I still can't target those gigantics asteroids, and when shooting at it, they disappear.  :shaking:
Title: Re: Give more size to asteroids
Post by: aldo_14 on January 07, 2006, 09:08:03 am
Didn't (at the very beginning of the SCP) Kazan try and add in a super-huge asteroid class (i.e. code for), only to run into problems?
Title: Re: Give more size to asteroids
Post by: Prophet on January 07, 2006, 09:16:37 am
Well TBP has quite large asteroids and they work fine... Thought it is a bit dumb when a huge chunk of rock greates a huge fiery blast after few shots from a fighter  :rolleyes:
Title: Re: Give more size to asteroids
Post by: Wanderer on January 07, 2006, 09:27:23 am
I tried to read from the code what it does with asteroid explosions but as im not too good with that stuff i may have partially missed it, but it seems like game should be using models radius in deciding the size of the explosion (?) and the stuff seems to be hardcoded. Though as im not really a coder these are just rather vague opinions about it.
Title: Re: Give more size to asteroids
Post by: Lukeskywalkie on January 07, 2006, 05:42:44 pm
... Thought it is a bit dumb when a huge chunk of rock greates a huge fiery blast after few shots from a fighter  :rolleyes:

I heartily agree.  I also  think that the light that asteroids reflect could be a little more....diffused. You can really tell apart asteroid 'faces' right now, because of the rather stark colouring they show under different lights.
Title: Re: Give more size to asteroids
Post by: Flipside on January 09, 2006, 05:27:47 pm
Well, that sort of thing boils down to pixel shading/bumpmapping etc, which isn't implemented in FS2....at the moment at least.
Title: Re: Give more size to asteroids
Post by: aldo_14 on January 09, 2006, 05:41:47 pm
I'd kill for bumpmapping, it seems to make such an improvement to my models when bumpmaps are used for renders (granted, different thing, but still....)
Title: Re: Give more size to asteroids
Post by: WMCoolmon on January 09, 2006, 09:12:25 pm
You can do quite a bit with shine maps.
Title: Re: Give more size to asteroids
Post by: Unknown Target on January 10, 2006, 06:11:32 am
A bump-mapped asteroid would be gorgeous...
Title: Re: Give more size to asteroids
Post by: starfox on January 10, 2006, 05:01:25 pm
I remember an episode in Babylon 5, where Sheridan's forces and Clark's loyalists fought very near/around a very large asteroid...
Can't remember excatly what Ep. it was, but it sure was cool.
 :nod: