UFO:Alien Invasion

Technical support => Feature Requests => Topic started by: Anarch Cassius on December 19, 2012, 04:40:14 am

Title: Define new Materials and Armor for destroyable entities
Post by: Anarch Cassius on December 19, 2012, 04:40:14 am
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: [Select]
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
}
}
Title: Re: Define new Materials and Armor for destroyable entities
Post by: Crystan on December 19, 2012, 02:11:56 pm
What do you mean with "rules for sounds..."?
Title: Re: Define new Materials and Armor for destroyable entities
Post by: Anarch Cassius on December 19, 2012, 05:57:23 pm
About like I showed there... just the ability to define hurt of death sounds. Technically speaking I just want data, not rules per se :)
Title: Re: Define new Materials and Armor for destroyable entities
Post by: Crystan on December 20, 2012, 03:15:40 am
Well you can define the hurt and death sounds in the team_*.ufos
Code: (team_aliens.ufo) [Select]
actorsounds {
neutral {
hurtsound "aliens/taman/hurt1"
hurtsound "aliens/taman/hurt2"
hurtsound "aliens/taman/hurt3"
deathsound "aliens/taman/die1"
deathsound "aliens/taman/die2"
}
}
Title: Re: Define new Materials and Armor for destroyable entities
Post by: Kildor on December 20, 2012, 05:45:57 am
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.
Title: Re: Define new Materials and Armor for destroyable entities
Post by: Anarch Cassius on December 20, 2012, 07:26:37 am
Precisely. We can already set a number that affects sound but I'd like to be able to add new ones and control armor too.