project-navigation
Personal tools

Author Topic: Define new Materials and Armor for destroyable entities  (Read 3004 times)

Offline Anarch Cassius

  • Squad Leader
  • ****
  • Posts: 176
    • View Profile
Define new Materials and Armor for destroyable entities
« 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
}
}

Offline Crystan

  • Project Artist
  • Captain
  • ***
  • Posts: 572
  • UFO:AI Lead Sound Artist
    • View Profile
    • http://crysea.cr.funpic.de/
Re: Define new Materials and Armor for destroyable entities
« Reply #1 on: December 19, 2012, 02:11:56 pm »
What do you mean with "rules for sounds..."?

Offline Anarch Cassius

  • Squad Leader
  • ****
  • Posts: 176
    • View Profile
Re: Define new Materials and Armor for destroyable entities
« Reply #2 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 :)

Offline Crystan

  • Project Artist
  • Captain
  • ***
  • Posts: 572
  • UFO:AI Lead Sound Artist
    • View Profile
    • http://crysea.cr.funpic.de/
Re: Define new Materials and Armor for destroyable entities
« Reply #3 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"
}
}
« Last Edit: December 20, 2012, 03:17:17 am by Crystan »

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Define new Materials and Armor for destroyable entities
« Reply #4 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.

Offline Anarch Cassius

  • Squad Leader
  • ****
  • Posts: 176
    • View Profile
Re: Define new Materials and Armor for destroyable entities
« Reply #5 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.