Page 1 of 1

how to embed sounds so that when you click on blintz is lowe

Posted: Sat Feb 07, 2015 3:10 pm
by Petas
How to embed sounds so that when you click on blintz is lowered?
:PB :PB :PB


---------------------------Configuration File-------------------------------------------------------------------

Code: Select all

///////////////////////////////////////////////////////////////////////////////
//
// Pandemic Studios
//


// UNIT
CreateObjectType("Blintz", "Unit")
{
  GameObj()
  {
    ThinkInterval(1);
    IdleTask("Tasks::UnitIdle");
    Properties()
    {
      Add("Filter::Army");
      Add("Filter::Mechanical");
      Add("Filter::Unit");
      Add("Client::FacilityBar");
      Add("Client::NoGroupSelect");
    }
  }

  MapObj()
  {
    GodFile("army_blintz.god");
    PhysicsModel("Vehicle");
    TractionType("vehicle");

    ReticleType("Vehicle");

    ArmourClass("vehicle");
    HitPoints(500);

    TypeDisplay()
    {
      Image()
      {
        Image("if_game_portraits-Blintz.tga", 0, 168, 42, 42);
        Mode("Centre");
      }
    }
    GenericFX()
    {
      Add("MapObj::Health::Low", "damage.bulldozer");
      Add("MapObj::Death", "death.vehicle-large");
      Add("Restore::Target::Process", "restore-small");
      Add("MapObj::AddToMap2", "restore-small-puff");
    }
  }

  UnitObj()
  {
    TopSpeed(45);
    TurnSpeed(540);

    SeeingRange(57);
    MoveIntoRange(80);


    Constructor("army.building.hq1");
    ConstructionTime(20);
    CreateSource("resource.blob.vehicle1");
    CommandCost(1);
    ResourceCost()
    {
      Add("Plastic", 250);
      Add("Electricity", 0);
    }
    Prereqs()
    {
      Add("army.building.hq1");
    }
  }
}

Re: how to embed sounds so that when you click on blintz is

Posted: Sat Feb 07, 2015 5:29 pm
by TommyCD1

Code: Select all

///////////////////////////////////////////////////////////////////////////////
//
// Pandemic Studios
//


// UNIT
CreateObjectType("Blintz", "Unit")
{
  GameObj()
  {
    ThinkInterval(1);
    IdleTask("Tasks::UnitIdle");
    Properties()
    {
      Add("Filter::Army");
      Add("Filter::Mechanical");
      Add("Filter::Unit");
      Add("Client::FacilityBar");
      Add("Client::NoGroupSelect");
    }
  }

  MapObj()
  {
    GodFile("army_blintz.god");
    PhysicsModel("Vehicle");
    TractionType("vehicle");

    ReticleType("Vehicle");

    ArmourClass("vehicle");
    HitPoints(500);

    TypeDisplay()
    {
    Image()
      {
        Image("if_game_portraits-Blintz.tga", 0, 168, 42, 42);
        Mode("Centre");
      }
    }
    GenericFX()
    {
      Add("MapObj::Health::Low", "damage.bulldozer");
      Add("MapObj::Death", "death.vehicle-large");
      Add("Restore::Target::Process", "restore-small");
      Add("MapObj::AddToMap2", "restore-small-puff");
    }
  }

  UnitObj()
  {
    TopSpeed(45);
    TurnSpeed(540);

    SeeingRange(57);
    MoveIntoRange(80);

    ResponseEvents() // This is where your sound clips go.
    {
      Add("Attack") // These are the sounds your unit will say when you tell them to attack something.
      {
        Add("sound.wav");
      }
      Add("Attacked") // These are the sounds your unit will say when they are attacked.
      {
        Add("sound.wav");
      }
      Add("Move") // These are the sounds your unit will say when you move them.
      {
        Add("sound.wav");
      }
      Add("Select") // These are the sounds your unit will say when you select them.
      {
        Add("sound.wav");
      }
      Add("Spotted") // These are the sounds your unit will say when they see an enemy.
      {
        Add("sound.wav");
      }
    }

    Constructor("army.building.hq1");
    ConstructionTime(20);
    CreateSource("resource.blob.vehicle1");
    CommandCost(1);
    ResourceCost()
    {
      Add("Plastic", 250);
      Add("Electricity", 0);
    }
    Prereqs()
    {
      Add("army.building.hq1");
    }
  }
}

Code: Select all

    ResponseEvents() // This is where your sound clips go.
    {
      Add("Attack") // These are the sounds your unit will say when you tell them to attack something.
      {
        Add("sound.wav");
      }
      Add("Attacked") // These are the sounds your unit will say when they are attacked.
      {
        Add("sound.wav");
      }
      Add("Move") // These are the sounds your unit will say when you move them.
      {
        Add("sound.wav");
      }
      Add("Select") // These are the sounds your unit will say when you select them.
      {
        Add("sound.wav");
      }
      Add("Spotted") // These are the sounds your unit will say when they see an enemy.
      {
        Add("sound.wav");
      }
    }

Re: how to embed sounds so that when you click on blintz is

Posted: Sun Feb 08, 2015 3:43 am
by Petas
Thanks :D

Re: how to embed sounds so that when you click on blintz is

Posted: Thu Feb 19, 2015 8:22 am
by Kennedy

Code: Select all

///////////////////////////////////////////////////////////////////////////////
//
// Pandemic Studios
//


// UNIT
CreateObjectType("Blintz", "Unit")
{
GameObj()
{
ThinkInterval(1);
IdleTask("Tasks::UnitIdle");
Properties()
{
Add("Filter::Army");
Add("Filter::Mechanical");
Add("Filter::Unit");
Add("Client::FacilityBar");
Add("Client::NoGroupSelect");
}
}

MapObj()
{
GodFile("army_blintz.god");
PhysicsModel("Vehicle");
TractionType("vehicle");

ReticleType("Vehicle");

ArmourClass("vehicle");
HitPoints(500);

TypeDisplay()
{
Image()
{
Image("if_game_portraits-Blintz.tga", 0, 168, 42, 42);
Mode("Centre");
}
}
GenericFX()
{
Add("MapObj::Health::Low", "damage.bulldozer");
Add("MapObj::Death", "death.vehicle-large");
Add("Restore::Target::Process", "restore-small");
Add("MapObj::AddToMap2", "restore-small-puff");
}
}

UnitObj()
{
TopSpeed(45);
TurnSpeed(540);

SeeingRange(57);
MoveIntoRange(80);


Constructor("army.building.hq1");
ConstructionTime(20);
CreateSource("resource.blob.vehicle1");
CommandCost(1);
Resou
for change speed edit the Top Speed. like this:

Code: Select all

///////////////////////////////////////////////////////////////////////////////
//
// Pandemic Studios
//


// UNIT
CreateObjectType("Blintz", "Unit")
{
GameObj()
{
ThinkInterval(1);
IdleTask("Tasks::UnitIdle");
Properties()
{
Add("Filter::Army");
Add("Filter::Mechanical");
Add("Filter::Unit");
Add("Client::FacilityBar");
Add("Client::NoGroupSelect");
}
}

MapObj()
{
GodFile("army_blintz.god");
PhysicsModel("Vehicle");
TractionType("vehicle");

ReticleType("Vehicle");

ArmourClass("vehicle");
HitPoints(500);

TypeDisplay()
{
Image()
{
Image("if_game_portraits-Blintz.tga", 0, 168, 42, 42);
Mode("Centre");
}
}
GenericFX()
{
Add("MapObj::Health::Low", "damage.bulldozer");
Add("MapObj::Death", "death.vehicle-large");
Add("Restore::Target::Process", "restore-small");
Add("MapObj::AddToMap2", "restore-small-puff");
}
}

UnitObj()
{
TopSpeed(80);  <-------HERE
TurnSpeed(540);

SeeingRange(57);
MoveIntoRange(80);


Constructor("army.building.hq1");
ConstructionTime(20);
CreateSource("resource.blob.vehicle1");
CommandCost(1);
Resou