Technical support > Feature Requests

Define new Materials and Armor for destroyable entities

(1/2) > >>

Anarch Cassius:
It'd be nice to be able to say have .ufo of materials with rules for sounds and armor. Then we can have more realistic destructibles and define new types without having to put it in the hardcode.


--- Code: ---material 6 //MATERIAL_ALIEN_MACHINERY
{
sounds {
neutral {
hurtsound "aliens/bloodspider/hurt1"
hurtsound "aliens/bloodspider/hurt2"
hurtsound "aliens/bloodspider/hurt3"
deathsound "aliens/bloodspider/die1"
deathsound "aliens/bloodspider/die2"
}
}

resistance {
normal_spray 16
normal_light 40
normal_medium 20
normal_heavy 5

normal_steelblade 5
normal_monomolecularblade 0
normal_needle 3

blast 30

fire_light -10
fire_medium -20
fire_heavy -30
fire_flamer -1

incendiary 0

shock 10

laser_light 30
laser_medium 20
laser_heavy 10

plasma_light -10
plasma_medium -20
plasma_heavy -30
plasma_pierce 0

particlebeam_light 10
particlebeam_medium 20
particlebeam_heavy 20

stun_electro -20
stun_gas 30
}
}

--- End code ---

Crystan:
What do you mean with "rules for sounds..."?

Anarch Cassius:
About like I showed there... just the ability to define hurt of death sounds. Technically speaking I just want data, not rules per se :)

Crystan:
Well you can define the hurt and death sounds in the team_*.ufos

--- Code: (team_aliens.ufo) --- actorsounds {
neutral {
hurtsound "aliens/taman/hurt1"
hurtsound "aliens/taman/hurt2"
hurtsound "aliens/taman/hurt3"
deathsound "aliens/taman/die1"
deathsound "aliens/taman/die2"
}
}
--- End code ---

Kildor:
I suppose that he want to define custom sounds and armour values for a destructible objects on map and not for the actors.

This may be interesting idea to play with.

Navigation

[0] Message Index

[#] Next page

Go to full version