forked from Mirrors/openclonk
moved sounds into subfolders
This completes http://forum.openclonk.org/topic_show.pl?tid=3215shapetextures
parent
278584578f
commit
dcfb986e34
|
@ -51,7 +51,7 @@ protected func Initialize()
|
||||||
AddEffect("FillOtherChest", chest, 100, 5 * 36);
|
AddEffect("FillOtherChest", chest, 100, 5 * 36);
|
||||||
|
|
||||||
AddEffect("SnowyWinter", nil, 100, 1);
|
AddEffect("SnowyWinter", nil, 100, 1);
|
||||||
Sound("WindLoop",true,20,nil,+1);
|
Sound("Environment::WindLoop",true,20,nil,+1);
|
||||||
AddEffect("GeysirExplosion", nil, 100, 1);
|
AddEffect("GeysirExplosion", nil, 100, 1);
|
||||||
// Brick edges, notice the symmetric landscape.
|
// Brick edges, notice the symmetric landscape.
|
||||||
PlaceEdges();
|
PlaceEdges();
|
||||||
|
|
|
@ -14,8 +14,8 @@ func Initialize()
|
||||||
public func ControlUse(object pClonk, int ix, int iy)
|
public func ControlUse(object pClonk, int ix, int iy)
|
||||||
{
|
{
|
||||||
AddEffect("Frostbolt", nil, 100, 1, nil, GetID(), pClonk->GetOwner(), Angle(0,0,ix,iy),pClonk->GetX(), pClonk->GetY());
|
AddEffect("Frostbolt", nil, 100, 1, nil, GetID(), pClonk->GetOwner(), Angle(0,0,ix,iy),pClonk->GetX(), pClonk->GetY());
|
||||||
Sound("Fireball");
|
Sound("Fire::Fireball");
|
||||||
Sound("Fireball");
|
Sound("Fire::Fireball");
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public func FxFrostboltTimer(pTarget, effect, iEffectTime)
|
||||||
{
|
{
|
||||||
CreateObjectAbove(Dynamite,x,y,effect.owner)->BlueExplode();
|
CreateObjectAbove(Dynamite,x,y,effect.owner)->BlueExplode();
|
||||||
var dummy = CreateObjectAbove(Dummy,x,y,-1);
|
var dummy = CreateObjectAbove(Dummy,x,y,-1);
|
||||||
dummy->Sound("GlassShatter");
|
dummy->Sound("Hits::Materials::Glass::GlassShatter");
|
||||||
ScheduleCall(dummy, "RemoveObject", 36);
|
ScheduleCall(dummy, "RemoveObject", 36);
|
||||||
for(var i=0; i<=60;i++)
|
for(var i=0; i<=60;i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ global func BlueExplode(int level)
|
||||||
|
|
||||||
// Sound must be created before object removal, for it to be played at the right position.
|
// Sound must be created before object removal, for it to be played at the right position.
|
||||||
var grade = BoundBy(level / 10 - 1, 1, 3);
|
var grade = BoundBy(level / 10 - 1, 1, 3);
|
||||||
Sound(Format("Blast%d", grade), false);
|
Sound(Format("Fire::Blast%d", grade), false);
|
||||||
|
|
||||||
// Explosion parameters.
|
// Explosion parameters.
|
||||||
var x = GetX(), y = GetY();
|
var x = GetX(), y = GetY();
|
||||||
|
|
|
@ -38,7 +38,7 @@ public func ControlUse(object clonk, int ix, int iy)
|
||||||
// applies the healing effect even when the Clonk is at full HP
|
// applies the healing effect even when the Clonk is at full HP
|
||||||
// does this because you can block one source of damage
|
// does this because you can block one source of damage
|
||||||
AddEffect("GemHealing", clonk, 10, 4, nil, this->GetID());
|
AddEffect("GemHealing", clonk, 10, 4, nil, this->GetID());
|
||||||
clonk->Sound("Breathing", false, 50, nil);
|
clonk->Sound("Clonk::Action::Breathing", false, 50, nil);
|
||||||
this->RemoveObject();
|
this->RemoveObject();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ public func FinishedAiming(object clonk, int angle)
|
||||||
AddEffect("ExplosiveArrow",arrow,100,1,this);
|
AddEffect("ExplosiveArrow",arrow,100,1,this);
|
||||||
arrow->SetClrModulation(RGB(255,128,0));
|
arrow->SetClrModulation(RGB(255,128,0));
|
||||||
}
|
}
|
||||||
Sound("BowShoot?");
|
Sound("Objects::Weapons::Bow::Shoot?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ public func DoThrow(object clonk, int angle)
|
||||||
javelin->AddEffect("Flight",javelin,1,1,javelin,nil);
|
javelin->AddEffect("Flight",javelin,1,1,javelin,nil);
|
||||||
javelin->AddEffect("HitCheck",javelin,1,1,nil,nil,clonk);
|
javelin->AddEffect("HitCheck",javelin,1,1,nil,nil,clonk);
|
||||||
|
|
||||||
Sound("ThrowJavelin?");
|
Sound("Objects::Weapons::Javelin::Throw?");
|
||||||
|
|
||||||
aiming = -1;
|
aiming = -1;
|
||||||
clonk->UpdateAttach();
|
clonk->UpdateAttach();
|
||||||
|
|
|
@ -38,7 +38,7 @@ private func FireWeapon(object clonk, int angle)
|
||||||
loaded = false;
|
loaded = false;
|
||||||
SetProperty("PictureTransformation",Trans_Mul(Trans_Translate(1500,0,-1500),Trans_Rotate(170,0,1,0),Trans_Rotate(30,0,0,1)));
|
SetProperty("PictureTransformation",Trans_Mul(Trans_Translate(1500,0,-1500),Trans_Rotate(170,0,1,0),Trans_Rotate(30,0,0,1)));
|
||||||
|
|
||||||
Sound("GunShoot?");
|
Sound("Objects::Weapons::Musket::GunShoot?");
|
||||||
|
|
||||||
// Muzzle Flash & gun smoke
|
// Muzzle Flash & gun smoke
|
||||||
var IX=Sin(180-angle,MuskFront);
|
var IX=Sin(180-angle,MuskFront);
|
||||||
|
|
|
@ -18,7 +18,7 @@ protected func Initialize()
|
||||||
//Enviroment.
|
//Enviroment.
|
||||||
Cloud->Place(25);
|
Cloud->Place(25);
|
||||||
SetSkyAdjust(RGBa(250,250,255,128),RGB(200,200,220));
|
SetSkyAdjust(RGBa(250,250,255,128),RGB(200,200,220));
|
||||||
Sound("BirdsLoop", true, 100, nil, 1);
|
Sound("Environment::BirdsLoop", true, 100, nil, 1);
|
||||||
|
|
||||||
// Brick edges at horizontal moving bricks.
|
// Brick edges at horizontal moving bricks.
|
||||||
var x=[525, 436, 436, 525, 812, 812, 716, 716, 573, 573, 213, 213];
|
var x=[525, 436, 436, 525, 812, 812, 716, 716, 573, 573, 213, 213];
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
public func ControlUse(object pClonk, int ix, int iy)
|
public func ControlUse(object pClonk, int ix, int iy)
|
||||||
{
|
{
|
||||||
AddEffect("Fireball", nil, 100, 1, nil, GetID(), pClonk->GetOwner(), Angle(0,0,ix,iy),pClonk->GetX(), pClonk->GetY());
|
AddEffect("Fireball", nil, 100, 1, nil, GetID(), pClonk->GetOwner(), Angle(0,0,ix,iy),pClonk->GetX(), pClonk->GetY());
|
||||||
Sound("Fireball");
|
Sound("Fire::Fireball");
|
||||||
Sound("Fireball");
|
Sound("Fire::Fireball");
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ protected func Initialize()
|
||||||
//Enviroment.
|
//Enviroment.
|
||||||
//SetSkyAdjust(RGBa(250,250,255,128),RGB(200,200,220));
|
//SetSkyAdjust(RGBa(250,250,255,128),RGB(200,200,220));
|
||||||
SetSkyParallax(1, 20,20, 0,0, nil, nil);
|
SetSkyParallax(1, 20,20, 0,0, nil, nil);
|
||||||
Sound("BirdsLoop",true,100,nil,+1);
|
Sound("Environment::BirdsLoop",true,100,nil,+1);
|
||||||
|
|
||||||
CreateObjectAbove(Column,650,379);
|
CreateObjectAbove(Column,650,379);
|
||||||
CreateObjectAbove(Column,350,409);
|
CreateObjectAbove(Column,350,409);
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
public func ControlUse(object pClonk, int ix, int iy)
|
public func ControlUse(object pClonk, int ix, int iy)
|
||||||
{
|
{
|
||||||
AddEffect("Fireball", nil, 100, 1, nil, GetID(), pClonk->GetOwner(), Angle(0,0,ix,iy),pClonk->GetX(), pClonk->GetY());
|
AddEffect("Fireball", nil, 100, 1, nil, GetID(), pClonk->GetOwner(), Angle(0,0,ix,iy),pClonk->GetX(), pClonk->GetY());
|
||||||
Sound("Fireball");
|
Sound("Fire::Fireball");
|
||||||
Sound("Fireball");
|
Sound("Fire::Fireball");
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
public func ControlUse(object pClonk)
|
public func ControlUse(object pClonk)
|
||||||
{
|
{
|
||||||
Sound("Blast3");
|
Sound("Fire::Blast3");
|
||||||
Exit(0,-GetY());
|
Exit(0,-GetY());
|
||||||
AddEffect("ThunderStrike",nil,100,1,nil,this->GetID(),pClonk->GetOwner(),this->GetX()-5);
|
AddEffect("ThunderStrike",nil,100,1,nil,this->GetID(),pClonk->GetOwner(),this->GetX()-5);
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
func Fall(int from)
|
func Fall(int from)
|
||||||
{
|
{
|
||||||
Sound("BowShoot?");
|
Sound("Objects::Weapons::Bow::Shoot?");
|
||||||
for(var i=0; i < 10; i++ )
|
for(var i=0; i < 10; i++ )
|
||||||
{
|
{
|
||||||
var arrow = TakeObject();
|
var arrow = TakeObject();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit*");
|
Sound("Hits::GeneralHit*");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit*");
|
Sound("Hits::GeneralHit*");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ public func ClickBuyButton(int callback_idx, entry_id, int player)
|
||||||
{
|
{
|
||||||
if (player != homebase[0]->GetOwner()) return false; // wat?
|
if (player != homebase[0]->GetOwner()) return false; // wat?
|
||||||
if (homebase[0]->OnBuySelection(callback_idx)) return true;
|
if (homebase[0]->OnBuySelection(callback_idx)) return true;
|
||||||
Sound("DullMetalHit3", true, nil, player);
|
Sound("Hits::Materials::Metal::DullMetalHit3", true, nil, player);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,14 +198,14 @@ public func OnBuySelection(int callback_idx)
|
||||||
{
|
{
|
||||||
if (GetWealth(plr) < entry.cost) return false;
|
if (GetWealth(plr) < entry.cost) return false;
|
||||||
DoWealth(plr, -entry.cost);
|
DoWealth(plr, -entry.cost);
|
||||||
Sound("Cash", true, nil, plr);
|
Sound("UI::Cash", true, nil, plr);
|
||||||
// Some items cost only once
|
// Some items cost only once
|
||||||
if (entry.free_rebuy) entry.cost = nil;
|
if (entry.free_rebuy) entry.cost = nil;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Still some feedback even on free selections
|
// Still some feedback even on free selections
|
||||||
Sound("Waterdrop1", true, nil, plr);
|
Sound("Liquids::Waterdrop1", true, nil, plr);
|
||||||
}
|
}
|
||||||
// Technology?
|
// Technology?
|
||||||
if (entry.callback)
|
if (entry.callback)
|
||||||
|
@ -269,7 +269,7 @@ public func SellItem(item)
|
||||||
if (item.GidlValue)
|
if (item.GidlValue)
|
||||||
{
|
{
|
||||||
DoWealth(GetOwner(), item.GidlValue);
|
DoWealth(GetOwner(), item.GidlValue);
|
||||||
Sound("Cash", true, nil, GetOwner());
|
Sound("UI::Cash", true, nil, GetOwner());
|
||||||
}
|
}
|
||||||
is_selling = true; // no item re-buy during sale
|
is_selling = true; // no item re-buy during sale
|
||||||
var success = item->RemoveObject();
|
var success = item->RemoveObject();
|
||||||
|
|
|
@ -165,7 +165,7 @@ func LaunchWave(int wave)
|
||||||
{
|
{
|
||||||
var wave_spawn_time = 0;
|
var wave_spawn_time = 0;
|
||||||
CustomMessage(Format("$MsgWave$: %s", wave, wave_data.Name));
|
CustomMessage(Format("$MsgWave$: %s", wave, wave_data.Name));
|
||||||
Sound("Ding");
|
Sound("UI::Ding");
|
||||||
for (var enemy in ForceVal2Array(wave_data.Enemies)) if (enemy)
|
for (var enemy in ForceVal2Array(wave_data.Enemies)) if (enemy)
|
||||||
{
|
{
|
||||||
if (enemy.Delay)
|
if (enemy.Delay)
|
||||||
|
@ -240,7 +240,7 @@ func OnWaveCleared(int wave)
|
||||||
DoWealthForAll(bounty);
|
DoWealthForAll(bounty);
|
||||||
}
|
}
|
||||||
CustomMessage(Format("$MsgWaveCleared$%s| ", wave, bounty_msg));
|
CustomMessage(Format("$MsgWaveCleared$%s| ", wave, bounty_msg));
|
||||||
Sound("Ding");
|
Sound("UI::Ding");
|
||||||
// Fade out corpses
|
// Fade out corpses
|
||||||
if (g_object_fade)
|
if (g_object_fade)
|
||||||
for (var obj in FindObjects(Find_Or(Find_And(Find_ID(Clonk), Find_Not(Find_OCF(OCF_Alive))), Find_ID(Catapult))))
|
for (var obj in FindObjects(Find_Or(Find_And(Find_ID(Clonk), Find_Not(Find_OCF(OCF_Alive))), Find_ID(Catapult))))
|
||||||
|
|
|
@ -77,7 +77,7 @@ protected func Hit()
|
||||||
{
|
{
|
||||||
//Message("I have hit something");
|
//Message("I have hit something");
|
||||||
if(GetEffect("Flight",this)) DoFireworks();
|
if(GetEffect("Flight",this)) DoFireworks();
|
||||||
else Sound("WoodHit");
|
else Sound("Hits::Materials::Wood::WoodHit*");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected func HitObject()
|
protected func HitObject()
|
||||||
|
|
|
@ -28,7 +28,7 @@ func Initialize()
|
||||||
PlaceGrass(100, 800, 1400);
|
PlaceGrass(100, 800, 1400);
|
||||||
SetSkyParallax(0,25,25,0,0,0,0);
|
SetSkyParallax(0,25,25,0,0,0,0);
|
||||||
AddEffect("BoomAttack", nil, 100, 35);
|
AddEffect("BoomAttack", nil, 100, 35);
|
||||||
Sound("WindLoop",true,40,nil,+1);
|
Sound("Environment::WindLoop",true,40,nil,+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
global func FxBoomAttackTimer(object target, effect, int time)
|
global func FxBoomAttackTimer(object target, effect, int time)
|
||||||
|
|
|
@ -84,7 +84,7 @@ func InitializeEnvironments()
|
||||||
var overground = this.env_overground = new Environment {};
|
var overground = this.env_overground = new Environment {};
|
||||||
overground->SetMusic("overground");
|
overground->SetMusic("overground");
|
||||||
overground.CheckPlayer = this.EnvCheck_Overground;
|
overground.CheckPlayer = this.EnvCheck_Overground;
|
||||||
overground->AddSound("Ding", 100);
|
overground->AddSound("UI::Ding", 100);
|
||||||
AddEnvironment(overground, 0);
|
AddEnvironment(overground, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ public func Interact(object clonk)
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("MetalHit?");
|
Sound("Hits::Materials::Metal::LightMetalHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
func Construction(object constructor)
|
func Construction(object constructor)
|
||||||
|
|
|
@ -152,7 +152,7 @@ public func SetConnectedObjects(obj1, obj2)
|
||||||
|
|
||||||
protected func LineBreak(bool no_msg)
|
protected func LineBreak(bool no_msg)
|
||||||
{
|
{
|
||||||
Sound("LineBreak");
|
Sound("Objects::Connect");
|
||||||
if (!no_msg)
|
if (!no_msg)
|
||||||
BreakMessage();
|
BreakMessage();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("RockHit?");
|
Sound("Hits::Materials::Rock::RockHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func IsToolProduct() { return true; }
|
public func IsToolProduct() { return true; }
|
||||||
|
@ -26,7 +26,7 @@ protected func ControlUse(object clonk, int x, int y)
|
||||||
{
|
{
|
||||||
// Power line is already connected to obj -> remove line.
|
// Power line is already connected to obj -> remove line.
|
||||||
line->RemoveObject();
|
line->RemoveObject();
|
||||||
Sound("Connect");
|
Sound("Objects::Connect");
|
||||||
clonk->Message("$TxtLineRemoval$");
|
clonk->Message("$TxtLineRemoval$");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ protected func ControlUse(object clonk, int x, int y)
|
||||||
line->SetActionTargets(line->GetActionTarget(0), obj);
|
line->SetActionTargets(line->GetActionTarget(0), obj);
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
Sound("Connect");
|
Sound("Objects::Connect");
|
||||||
line->SetAction("Wait");
|
line->SetAction("Wait");
|
||||||
line->UpdateDraw();
|
line->UpdateDraw();
|
||||||
obj->AddCableConnection(line);
|
obj->AddCableConnection(line);
|
||||||
|
@ -52,7 +52,7 @@ protected func ControlUse(object clonk, int x, int y)
|
||||||
{
|
{
|
||||||
line = CreateObjectAbove(CableLine, 0, 0, NO_OWNER);
|
line = CreateObjectAbove(CableLine, 0, 0, NO_OWNER);
|
||||||
line->SetActionTargets(this, obj);
|
line->SetActionTargets(this, obj);
|
||||||
Sound("Connect");
|
Sound("Objects::Connect");
|
||||||
clonk->Message("$TxtConnect$", obj->GetName());
|
clonk->Message("$TxtConnect$", obj->GetName());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ protected func RejectCollect(id object_id, object obj)
|
||||||
{
|
{
|
||||||
if (ContentsCount() < this->MaxContentsCount())
|
if (ContentsCount() < this->MaxContentsCount())
|
||||||
{
|
{
|
||||||
Sound("Clonk");
|
Sound("Objects::Clonk");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (obj->Contained())
|
if (obj->Contained())
|
||||||
|
|
|
@ -21,7 +21,7 @@ func StopWalk()
|
||||||
func Footstep()
|
func Footstep()
|
||||||
{
|
{
|
||||||
if (GetMaterialVal("DigFree", "Material", GetMaterial(0,10)) == 0)
|
if (GetMaterialVal("DigFree", "Material", GetMaterial(0,10)) == 0)
|
||||||
Sound("StepHard?");
|
Sound("Clonk::Movement::StepHard?");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var dir = Sign(GetXDir());
|
var dir = Sign(GetXDir());
|
||||||
|
@ -34,7 +34,7 @@ func Footstep()
|
||||||
B = clr & 0xff,
|
B = clr & 0xff,
|
||||||
};
|
};
|
||||||
CreateParticle("Dust", PV_Random(dir * -5, dir * -3), 8, PV_Random(dir * 2, dir * 1), PV_Random(-2, -3), PV_Random(36, 2 * 36), particles, 5);
|
CreateParticle("Dust", PV_Random(dir * -5, dir * -3), 8, PV_Random(dir * 2, dir * 1), PV_Random(-2, -3), PV_Random(36, 2 * 36), particles, 5);
|
||||||
Sound("StepSoft?");
|
Sound("Clonk::Movement::StepSoft?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ private func CheckBurden()
|
||||||
|
|
||||||
private func BreakRight()
|
private func BreakRight()
|
||||||
{
|
{
|
||||||
Sound("TreeCrack");
|
Sound("Environment::Tree::Crack");
|
||||||
CastObjects(Wood, 2, 15, 20, 1, 180, 90);
|
CastObjects(Wood, 2, 15, 20, 1, 180, 90);
|
||||||
if (GetPhase() == 1)
|
if (GetPhase() == 1)
|
||||||
{
|
{
|
||||||
|
@ -42,7 +42,7 @@ private func BreakRight()
|
||||||
|
|
||||||
private func BreakLeft()
|
private func BreakLeft()
|
||||||
{
|
{
|
||||||
Sound("TreeCrack");
|
Sound("Environment::Tree::Crack");
|
||||||
CastObjects(Wood, 2, 15, -20, 1, 180, 90);
|
CastObjects(Wood, 2, 15, -20, 1, 180, 90);
|
||||||
if (GetPhase() == 2)
|
if (GetPhase() == 2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -160,7 +160,7 @@ func Intro_Stop()
|
||||||
func Intro_PlaneHit()
|
func Intro_PlaneHit()
|
||||||
{
|
{
|
||||||
// Plane hit ground! Continue sequence.
|
// Plane hit ground! Continue sequence.
|
||||||
Sound("PlaneCrash", true);
|
Sound("Objects::Plane::PlaneCrash", true);
|
||||||
var particles = Particles_Smoke(true);
|
var particles = Particles_Smoke(true);
|
||||||
particles.Size = PV_Linear(PV_Random(20, 60), PV_Random(50, 100));
|
particles.Size = PV_Linear(PV_Random(20, 60), PV_Random(50, 100));
|
||||||
CreateParticle("Smoke", PV_Random(-30,30), PV_Random(-30,30), PV_Random(-60, 60), PV_Random(-20,0), PV_Random(200, 500), particles, 20);
|
CreateParticle("Smoke", PV_Random(-30,30), PV_Random(-30,30), PV_Random(-60, 60), PV_Random(-20,0), PV_Random(200, 500), particles, 20);
|
||||||
|
|
|
@ -199,7 +199,7 @@ public func StartCommunication()
|
||||||
Attach = ATTACH_Front | ATTACH_MoveRelative,
|
Attach = ATTACH_Front | ATTACH_MoveRelative,
|
||||||
};
|
};
|
||||||
// Run effects
|
// Run effects
|
||||||
Sound("CrystalCommCharge");
|
Sound("CrystalCommunicator::CrystalCommCharge");
|
||||||
time = 0;
|
time = 0;
|
||||||
AddTimer(this.PreActivity, 5);
|
AddTimer(this.PreActivity, 5);
|
||||||
}
|
}
|
||||||
|
@ -222,13 +222,13 @@ private func PreActivity()
|
||||||
else
|
else
|
||||||
gem_target->CreateParticle("StarFlash", x, y, -x, -y, 10, small_flash_particle, 10);
|
gem_target->CreateParticle("StarFlash", x, y, -x, -y, 10, small_flash_particle, 10);
|
||||||
}
|
}
|
||||||
if (time == 20) Sound("CrystalCommBoost");
|
if (time == 20) Sound("CrystalCommunicator::CrystalCommBoost");
|
||||||
if (time > 50)
|
if (time > 50)
|
||||||
{
|
{
|
||||||
RemoveTimer(this.PreActivity);
|
RemoveTimer(this.PreActivity);
|
||||||
time = 0;
|
time = 0;
|
||||||
CreateParticle("StarFlash", PV_Random(-12, +12), PV_Random(-12, +12), PV_Random(-10, +10),PV_Random(-10, +10), PV_Random(20, 100), large_flash_particle, 10);
|
CreateParticle("StarFlash", PV_Random(-12, +12), PV_Random(-12, +12), PV_Random(-10, +10),PV_Random(-10, +10), PV_Random(20, 100), large_flash_particle, 10);
|
||||||
Sound("CrystalCommWumm");
|
Sound("CrystalCommunicator::CrystalCommWumm");
|
||||||
SetAction("Active");
|
SetAction("Active");
|
||||||
AddTimer(this.Activity, 1);
|
AddTimer(this.Activity, 1);
|
||||||
}
|
}
|
||||||
|
@ -265,12 +265,12 @@ private func Activity()
|
||||||
// Next char to send
|
// Next char to send
|
||||||
if (send_char == GetChar("."))
|
if (send_char == GetChar("."))
|
||||||
{
|
{
|
||||||
Sound("CrystalCommToneA");
|
Sound("CrystalCommunicator::CrystalCommToneA");
|
||||||
next_send_time = time + 13;
|
next_send_time = time + 13;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Sound("CrystalCommToneB");
|
Sound("CrystalCommunicator::CrystalCommToneB");
|
||||||
next_send_time = time + 27;
|
next_send_time = time + 27;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -346,7 +346,7 @@ local ActMap = {
|
||||||
Delay = 0,
|
Delay = 0,
|
||||||
Length = 1,
|
Length = 1,
|
||||||
NextAction = "Active",
|
NextAction = "Active",
|
||||||
Sound = "CrystalCommActive",
|
Sound = "CrystalCommunicator::CrystalCommActive",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -116,8 +116,8 @@ func Intro_10()
|
||||||
{
|
{
|
||||||
g_intro_sky_moving = false;
|
g_intro_sky_moving = false;
|
||||||
Schedule(this, "SetSkyParallax(0, 20, 20, ++this.intro_skyscroll_xdir, 0)", 10, -this.intro_skyscroll_xdir);
|
Schedule(this, "SetSkyParallax(0, 20, 20, ++this.intro_skyscroll_xdir, 0)", 10, -this.intro_skyscroll_xdir);
|
||||||
GetHero()->Sound("Hurt1");
|
GetHero()->Sound("Clonk::Verbal::Hurt1");
|
||||||
GetHero()->Sound("Hurt2");
|
GetHero()->Sound("Clonk::Verbal::Hurt2");
|
||||||
this.plane.rdir = 0;
|
this.plane.rdir = 0;
|
||||||
this.plane->StartInstantFlight(this.plane->GetR(), 15);
|
this.plane->StartInstantFlight(this.plane->GetR(), 15);
|
||||||
MessageBoxAll("$Intro10$", GetHero(), true); // aaaah
|
MessageBoxAll("$Intro10$", GetHero(), true); // aaaah
|
||||||
|
|
|
@ -95,7 +95,7 @@ func Outro_10()
|
||||||
|
|
||||||
func Outro_11()
|
func Outro_11()
|
||||||
{
|
{
|
||||||
Sound("Fanfare");
|
Sound("UI::Fanfare");
|
||||||
return GameOver();
|
return GameOver();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,6 @@ func ControlUseStart(object clonk, int ix, int iy)
|
||||||
|
|
||||||
func Hit()
|
func Hit()
|
||||||
{
|
{
|
||||||
Sound("GlassHit?");
|
Sound("Hits::Materials::Glass::GlassHit?");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -296,7 +296,7 @@ func FxNewtonHammeringTimer(object c, proplist fx, int time)
|
||||||
{
|
{
|
||||||
// Hammer backswing
|
// Hammer backswing
|
||||||
this.anim = c->PlayAnimation("StrikePickaxe", 10, Anim_Linear(b,b,a, Newton_Hammer_SwingTime, ANIM_Remove), Anim_Const(1000));
|
this.anim = c->PlayAnimation("StrikePickaxe", 10, Anim_Linear(b,b,a, Newton_Hammer_SwingTime, ANIM_Remove), Anim_Const(1000));
|
||||||
c->Sound("Clang?");
|
c->Sound("Objects::Pickaxe::Clang?");
|
||||||
var x = (c->GetDir()*2-1) * 9;
|
var x = (c->GetDir()*2-1) * 9;
|
||||||
var y = -16;
|
var y = -16;
|
||||||
c->CreateParticle("Dust", x,y, PV_Random(-10, 10), PV_Random(-10, 20), PV_Random(10, 20), new Particles_Dust() { R=120, G=100, B=80 }, 10);
|
c->CreateParticle("Dust", x,y, PV_Random(-10, 10), PV_Random(-10, 20), PV_Random(10, 20), new Particles_Dust() { R=120, G=100, B=80 }, 10);
|
||||||
|
|
|
@ -237,7 +237,7 @@ func Pyrit_HitFx()
|
||||||
var x = (GetDir()*2-1) * 14;
|
var x = (GetDir()*2-1) * 14;
|
||||||
var y = 4;
|
var y = 4;
|
||||||
CreateParticle("StarSpark", x*9/10,y*9/10, PV_Random(-20, 20), PV_Random(-20, 20), PV_Random(10, 20), Particles_Glimmer(), 10);
|
CreateParticle("StarSpark", x*9/10,y*9/10, PV_Random(-20, 20), PV_Random(-20, 20), PV_Random(10, 20), Particles_Glimmer(), 10);
|
||||||
Sound("Clang?");
|
Sound("Objects::Pickaxe::Clang?");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ func FxRockyPickaxeingTimer(object c, proplist fx, int time)
|
||||||
c->SetDir(DIR_Right);
|
c->SetDir(DIR_Right);
|
||||||
var len = c->GetAnimationLength("StrikePickaxe");
|
var len = c->GetAnimationLength("StrikePickaxe");
|
||||||
this.anim = c->PlayAnimation("StrikePickaxe", CLONK_ANIM_SLOT_Arms, Anim_Linear(0,0,len, Rocky_Pickaxe_SwingTime, ANIM_Remove), Anim_Const(1000));
|
this.anim = c->PlayAnimation("StrikePickaxe", CLONK_ANIM_SLOT_Arms, Anim_Linear(0,0,len, Rocky_Pickaxe_SwingTime, ANIM_Remove), Anim_Const(1000));
|
||||||
c->Sound("Clang?");
|
c->Sound("Objects::Pickaxe::Clang?");
|
||||||
var x = (c->GetDir()*2-1) * 9;
|
var x = (c->GetDir()*2-1) * 9;
|
||||||
var y = 16;
|
var y = 16;
|
||||||
c->CreateParticle("StarSpark", x,y, PV_Random(-20, 20), PV_Random(-20, 20), 20, c.pickaxe_particle, Random(10)+3);
|
c->CreateParticle("StarSpark", x,y, PV_Random(-20, 20), PV_Random(-20, 20), 20, c.pickaxe_particle, Random(10)+3);
|
||||||
|
|
|
@ -32,7 +32,7 @@ func FuelCheck(object clonk)
|
||||||
if (!FindContents(MetalBarrel))
|
if (!FindContents(MetalBarrel))
|
||||||
{
|
{
|
||||||
Dialogue->MessageBox("$PlaneNoOil$", clonk, clonk);
|
Dialogue->MessageBox("$PlaneNoOil$", clonk, clonk);
|
||||||
clonk->Sound("WipfWhine");
|
clonk->Sound("Animals::Wipf::Whine");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -144,7 +144,7 @@ func Attack_DropBomb(int plane_idx, int delay)
|
||||||
bomb->SetXDir(plane->GetXDir() + (i-2) * 10);
|
bomb->SetXDir(plane->GetXDir() + (i-2) * 10);
|
||||||
bomb->Fuse(true); // fuse and explode on hit
|
bomb->Fuse(true); // fuse and explode on hit
|
||||||
}
|
}
|
||||||
plane->Sound("BombDrop");
|
plane->Sound("Goal_Raid::BombDrop");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ func CheckLock(object clonk)
|
||||||
if (!key)
|
if (!key)
|
||||||
{
|
{
|
||||||
Dialogue->MessageBox("$DoorNoKey$", clonk, clonk);
|
Dialogue->MessageBox("$DoorNoKey$", clonk, clonk);
|
||||||
clonk->Sound("WipfWhine");
|
clonk->Sound("Animals::Wipf::Whine");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// too far away? (may happen when callback is from key)
|
// too far away? (may happen when callback is from key)
|
||||||
|
@ -36,6 +36,6 @@ func CheckLock(object clonk)
|
||||||
Dialogue->MessageBox("$DoorUnlocked$", clonk, clonk, nil, true);
|
Dialogue->MessageBox("$DoorUnlocked$", clonk, clonk, nil, true);
|
||||||
this.unlocked = true;
|
this.unlocked = true;
|
||||||
key->RemoveObject();
|
key->RemoveObject();
|
||||||
Sound("Click");
|
Sound("UI::Click");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("WoodHit");
|
Sound("Hits::Materials::Wood::WoodHit*");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func Definition(proplist def)
|
public func Definition(proplist def)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("WoodHit");
|
Sound("Hits::Materials::Wood::WoodHit*");
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsToolProduct() { return true; }
|
func IsToolProduct() { return true; }
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("WoodHit");
|
Sound("Hits::Materials::Wood::WoodHit*");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func Definition(proplist def)
|
public func Definition(proplist def)
|
||||||
|
|
|
@ -53,7 +53,7 @@ func AddPart(object part)
|
||||||
{
|
{
|
||||||
part->RemoveRestoreMode();
|
part->RemoveRestoreMode();
|
||||||
part->RemoveObject();
|
part->RemoveObject();
|
||||||
Sound("Ding", true);
|
Sound("UI::Ding", true);
|
||||||
SetProgress(progress+1);
|
SetProgress(progress+1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("WoodHit");
|
Sound("Hits::Materials::Wood::WoodHit*");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func Definition(proplist def)
|
public func Definition(proplist def)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("WoodHit");
|
Sound("Hits::Materials::Wood::WoodHit*");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func Definition(proplist def)
|
public func Definition(proplist def)
|
||||||
|
|
|
@ -215,7 +215,7 @@ public func Reinforce(int direction)
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateInteractionMenus(this.GetExtensionMenuEntries);
|
UpdateInteractionMenus(this.GetExtensionMenuEntries);
|
||||||
Sound("DullWoodHit1");
|
Sound("Hits::Materials::Wood::DullWoodHit1");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Destruction */
|
/* Destruction */
|
||||||
|
|
|
@ -122,7 +122,7 @@ func Pyrit_HitFx()
|
||||||
var x = (GetDir()*2-1) * 14;
|
var x = (GetDir()*2-1) * 14;
|
||||||
var y = 4;
|
var y = 4;
|
||||||
CreateParticle("StarSpark", x*9/10,y*9/10, PV_Random(-20, 20), PV_Random(-20, 20), PV_Random(10, 20), Particles_Glimmer(), 10);
|
CreateParticle("StarSpark", x*9/10,y*9/10, PV_Random(-20, 20), PV_Random(-20, 20), PV_Random(10, 20), Particles_Glimmer(), 10);
|
||||||
Sound("Clang?");
|
Sound("Objects::Pickaxe::Clang?");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ func DoSellEffect(container)
|
||||||
fm->FadeOut(2, 10);
|
fm->FadeOut(2, 10);
|
||||||
fm->SetSpeed(0, -5);
|
fm->SetSpeed(0, -5);
|
||||||
fm->SetMessage("+1</c>{{GoldBar}}");
|
fm->SetMessage("+1</c>{{GoldBar}}");
|
||||||
container->Sound("Cash");
|
container->Sound("UI::Cash");
|
||||||
|
|
||||||
var dust_particles =
|
var dust_particles =
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ func FuelCheck(object clonk)
|
||||||
if (!FindContents(MetalBarrel))
|
if (!FindContents(MetalBarrel))
|
||||||
{
|
{
|
||||||
Dialogue->MessageBox("$PlaneNoOil$", clonk, clonk);
|
Dialogue->MessageBox("$PlaneNoOil$", clonk, clonk);
|
||||||
clonk->Sound("WipfWhine");
|
clonk->Sound("Animals::Wipf::Whine");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -78,7 +78,7 @@ func Intro_2()
|
||||||
{
|
{
|
||||||
// Plane drop sound when it enters view range
|
// Plane drop sound when it enters view range
|
||||||
if (this.plane->GetY() > 900)
|
if (this.plane->GetY() > 900)
|
||||||
Sound("PlaneDrop", true);
|
Sound("Goal_TreasureHunt::PlaneDrop", true);
|
||||||
else
|
else
|
||||||
ScheduleSame(2);
|
ScheduleSame(2);
|
||||||
return true;
|
return true;
|
||||||
|
@ -87,7 +87,7 @@ func Intro_2()
|
||||||
func Intro_PlaneHit()
|
func Intro_PlaneHit()
|
||||||
{
|
{
|
||||||
// Plane hit ground! Continue sequence.
|
// Plane hit ground! Continue sequence.
|
||||||
Sound("PlaneCrash", true);
|
Sound("Objects::Plane::PlaneCrash", true);
|
||||||
SetR(-90);
|
SetR(-90);
|
||||||
var particles = Particles_Smoke(true);
|
var particles = Particles_Smoke(true);
|
||||||
particles.Size = PV_Linear(PV_Random(20, 60), PV_Random(50, 100));
|
particles.Size = PV_Linear(PV_Random(20, 60), PV_Random(50, 100));
|
||||||
|
|
|
@ -90,7 +90,7 @@ public func Hit(int x, int y)
|
||||||
}
|
}
|
||||||
|
|
||||||
SetRDir(0);
|
SetRDir(0);
|
||||||
Sound("SoftHit*");
|
Sound("Hits::SoftHit*");
|
||||||
|
|
||||||
var particles =
|
var particles =
|
||||||
{
|
{
|
||||||
|
@ -150,7 +150,7 @@ private func Hatch()
|
||||||
|
|
||||||
var c = CreateObject(Chippie, 0, 0, GetOwner());
|
var c = CreateObject(Chippie, 0, 0, GetOwner());
|
||||||
c->SetCon(50);
|
c->SetCon(50);
|
||||||
c->Sound("ChippieChirp*", false, 25);
|
c->Sound("Animals::Chippie::Chirp*", false, 25);
|
||||||
|
|
||||||
var particles =
|
var particles =
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,7 +42,7 @@ public func Death()
|
||||||
PV_Random(-20, 20), PV_Random(-20, 20),
|
PV_Random(-20, 20), PV_Random(-20, 20),
|
||||||
PV_Random(20, 60), particles, 60);
|
PV_Random(20, 60), particles, 60);
|
||||||
}
|
}
|
||||||
Sound("ChippieChirp*", false, 50);
|
Sound("Animals::Chippie::Chirp*", false, 50);
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ private func FxJumpCheckTimer(target, effect, time)
|
||||||
private func ClawTo(object obj)
|
private func ClawTo(object obj)
|
||||||
{
|
{
|
||||||
// Play the sound on the object, because the chippie turns invisible.
|
// Play the sound on the object, because the chippie turns invisible.
|
||||||
obj->Sound("ChippieBite*", false, 50);
|
obj->Sound("Animals::Chippie::Bite*", false, 50);
|
||||||
|
|
||||||
energy_sucked += 5 * 1000;
|
energy_sucked += 5 * 1000;
|
||||||
obj->DoEnergy(-5, false, FX_Call_EngGetPunched, GetOwner());
|
obj->DoEnergy(-5, false, FX_Call_EngGetPunched, GetOwner());
|
||||||
|
@ -221,7 +221,7 @@ private func FxActivityTimer(target, effect, time)
|
||||||
else
|
else
|
||||||
if(!Random(20) && !GetEffect("DanceCooldown", this))
|
if(!Random(20) && !GetEffect("DanceCooldown", this))
|
||||||
{
|
{
|
||||||
Sound("ChippieTalk*");
|
Sound("Animals::Chippie::Talk*");
|
||||||
|
|
||||||
var cnt = 0;
|
var cnt = 0;
|
||||||
for(var obj in FindObjects(Find_Distance(100), Find_ID(GetID()), Find_Allied(GetOwner()), Sort_Distance()))
|
for(var obj in FindObjects(Find_Distance(100), Find_ID(GetID()), Find_Allied(GetOwner()), Sort_Distance()))
|
||||||
|
|
|
@ -387,7 +387,7 @@ func FxIsBeingEatenAdd(target, effect)
|
||||||
func DoJump()
|
func DoJump()
|
||||||
{
|
{
|
||||||
SetAction("Jump");
|
SetAction("Jump");
|
||||||
Sound("SoftTouch*");
|
Sound("Hits::SoftTouch*");
|
||||||
|
|
||||||
var x_dir = RandomX(ActMap.Jump.Speed/2, ActMap.Jump.Speed);
|
var x_dir = RandomX(ActMap.Jump.Speed/2, ActMap.Jump.Speed);
|
||||||
if (GetComDir() == COMD_Left) x_dir *= -1;
|
if (GetComDir() == COMD_Left) x_dir *= -1;
|
||||||
|
|
|
@ -71,7 +71,7 @@ private func GetAttraction(proplist coordinates)
|
||||||
{
|
{
|
||||||
// GetAttraction will only be called for the swarm master, perfect to have just one being make sound
|
// GetAttraction will only be called for the swarm master, perfect to have just one being make sound
|
||||||
if(!Random(30))
|
if(!Random(30))
|
||||||
Sound("MosquitoBuzz", nil,nil,nil,nil, 200);
|
Sound("Animals::MosquitoBuzz", nil,nil,nil,nil, 200);
|
||||||
|
|
||||||
if (!lovely_place) lovely_place = CreateArray(3);
|
if (!lovely_place) lovely_place = CreateArray(3);
|
||||||
if (!lovely_place[1])
|
if (!lovely_place[1])
|
||||||
|
|
|
@ -101,7 +101,7 @@ func DoEat(object obj)
|
||||||
|
|
||||||
private func BiteEffect()
|
private func BiteEffect()
|
||||||
{
|
{
|
||||||
Sound("FishMunch*");
|
Sound("Animals::Fish::Munch*");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make this piranha a little larger than the mesh.
|
// Make this piranha a little larger than the mesh.
|
||||||
|
|
|
@ -79,7 +79,7 @@ private func UpdateVision()
|
||||||
|
|
||||||
private func BiteEffect()
|
private func BiteEffect()
|
||||||
{
|
{
|
||||||
Sound("FishMunch*", nil, nil, nil, nil, nil, 100);
|
Sound("Animals::Fish::Munch*", nil, nil, nil, nil, nil, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
local Name = "$Name$";
|
local Name = "$Name$";
|
||||||
|
|
|
@ -90,7 +90,7 @@ private func RandomizeColor()
|
||||||
|
|
||||||
public func CatchBlow(int damage, object from)
|
public func CatchBlow(int damage, object from)
|
||||||
{
|
{
|
||||||
Schedule(this, "Sound(\"PukaHurt*\")", RandomX(5, 20));
|
Schedule(this, "Sound(\"Animals::Puka::Hurt*\")", RandomX(5, 20));
|
||||||
}
|
}
|
||||||
|
|
||||||
private func CheckStuck()
|
private func CheckStuck()
|
||||||
|
@ -161,7 +161,7 @@ private func StopHangle()
|
||||||
public func Death()
|
public func Death()
|
||||||
{
|
{
|
||||||
AddEffect("IntDeathSparks", this, 1, 1, this);
|
AddEffect("IntDeathSparks", this, 1, 1, this);
|
||||||
SoundAt("PukaDie");
|
SoundAt("Animals::Puka::Die");
|
||||||
}
|
}
|
||||||
|
|
||||||
private func FxIntDeathSparksStart(object target, effect fx, temp)
|
private func FxIntDeathSparksStart(object target, effect fx, temp)
|
||||||
|
@ -270,7 +270,7 @@ private func ActivityWalking()
|
||||||
{
|
{
|
||||||
if (Random(3))
|
if (Random(3))
|
||||||
{
|
{
|
||||||
Schedule(this, "Sound(\"PukaGulp\")", 40);
|
Schedule(this, "Sound(\"Animals::Puka::Gulp\")", 40);
|
||||||
return SetAction("LookAround");
|
return SetAction("LookAround");
|
||||||
}
|
}
|
||||||
return SetAction("ScratchFace");
|
return SetAction("ScratchFace");
|
||||||
|
@ -422,7 +422,7 @@ private func FxIntTeleportStart(object target, effect fx, temp)
|
||||||
PV_Random(xdir - 5, xdir + 5), PV_Random(ydir - 5, ydir + 5),
|
PV_Random(xdir - 5, xdir + 5), PV_Random(ydir - 5, ydir + 5),
|
||||||
PV_Random(1, 5), fx.particles, 200);
|
PV_Random(1, 5), fx.particles, 200);
|
||||||
|
|
||||||
SoundAt("PukaTeleportOut");
|
SoundAt("Animals::Puka::TeleportOut");
|
||||||
}
|
}
|
||||||
|
|
||||||
private func FxIntTeleportTimer(object target, effect fx, int time)
|
private func FxIntTeleportTimer(object target, effect fx, int time)
|
||||||
|
@ -492,7 +492,7 @@ private func FxIntTeleportStop(object target, effect fx, int reason, temp)
|
||||||
PV_Random(xdir - 5, xdir + 5), PV_Random(ydir - 5, ydir + 5),
|
PV_Random(xdir - 5, xdir + 5), PV_Random(ydir - 5, ydir + 5),
|
||||||
PV_Random(1, 5), fx.particles, 200);
|
PV_Random(1, 5), fx.particles, 200);
|
||||||
|
|
||||||
SoundAt("PukaTeleportIn");
|
SoundAt("Animals::Puka::TeleportIn");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func TryStartTeleport()
|
public func TryStartTeleport()
|
||||||
|
@ -634,7 +634,7 @@ private func ShockWater()
|
||||||
|
|
||||||
AddEffect("Sparkle", this, 1, 1, this);
|
AddEffect("Sparkle", this, 1, 1, this);
|
||||||
|
|
||||||
Sound("PukaHiss*");
|
Sound("Animals::Puka::Hiss*");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -348,7 +348,7 @@ private func UpdateSwim()
|
||||||
private func DoJump()
|
private func DoJump()
|
||||||
{
|
{
|
||||||
SetAction("Jump");
|
SetAction("Jump");
|
||||||
Sound("SoftTouch*");
|
Sound("Hits::SoftTouch*");
|
||||||
|
|
||||||
var x_dir = RandomX(ActMap.Jump.Speed/2, ActMap.Jump.Speed);
|
var x_dir = RandomX(ActMap.Jump.Speed/2, ActMap.Jump.Speed);
|
||||||
if (GetComDir() == COMD_Left) x_dir *= -1;
|
if (GetComDir() == COMD_Left) x_dir *= -1;
|
||||||
|
|
|
@ -517,7 +517,7 @@ public func Eat(object food)
|
||||||
{
|
{
|
||||||
DoEnergy(food->~NutritionalValue());
|
DoEnergy(food->~NutritionalValue());
|
||||||
food->RemoveObject();
|
food->RemoveObject();
|
||||||
Sound("Munch?");
|
Sound("Clonk::Action::Munch?");
|
||||||
SetAction("Eat");
|
SetAction("Eat");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -539,7 +539,7 @@ public func IsDead()
|
||||||
|
|
||||||
protected func Death(int killed_by)
|
protected func Death(int killed_by)
|
||||||
{
|
{
|
||||||
Sound("WipfAroof");
|
Sound("Animals::Wipf::Aroof");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -571,7 +571,7 @@ protected func CatchBlow()
|
||||||
{
|
{
|
||||||
if (IsDead())
|
if (IsDead())
|
||||||
return;
|
return;
|
||||||
Sound("Weep?");
|
Sound("Animals::Wipf::Weep?");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ private func Hit2()
|
||||||
// Could be instantly dead
|
// Could be instantly dead
|
||||||
if (zap)
|
if (zap)
|
||||||
zap->SetEnraged();
|
zap->SetEnraged();
|
||||||
Sound("OrganicHit?");
|
Sound("Hits::OrganicHit?");
|
||||||
CreateParticle("WoodChip", 0,0, PV_Random(-2,2), -4, PV_Random(36 * 3, 36 * 10), Particles_Straw(), 5);
|
CreateParticle("WoodChip", 0,0, PV_Random(-2,2), -4, PV_Random(36 * 3, 36 * 10), Particles_Straw(), 5);
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ private func GetAttraction(proplist coordinates)
|
||||||
}
|
}
|
||||||
// GetAttraction will only be called for the swarm master, perfect to have just one being make sound
|
// GetAttraction will only be called for the swarm master, perfect to have just one being make sound
|
||||||
if(!Random(20))
|
if(!Random(20))
|
||||||
Sound("Zap?", nil,nil,nil,nil, 200, Random(100));
|
Sound("Animals::Zap::Zap?", nil,nil,nil,nil, 200, Random(100));
|
||||||
|
|
||||||
coordinates.x = home->GetX() + Random(20)-10;
|
coordinates.x = home->GetX() + Random(20)-10;
|
||||||
coordinates.y = home->GetY() + Random(20)-10;
|
coordinates.y = home->GetY() + Random(20)-10;
|
||||||
|
@ -170,7 +170,7 @@ private func CheckTurn()
|
||||||
|
|
||||||
private func AngryBuzz()
|
private func AngryBuzz()
|
||||||
{
|
{
|
||||||
Sound("Zap?", nil,nil,nil,nil, nil, -Random(100));
|
Sound("Animals::Zap::Zap?", nil,nil,nil,nil, nil, -Random(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-- Saving --*/
|
/*-- Saving --*/
|
||||||
|
|
|
@ -395,7 +395,7 @@ func GetCurrentWalkAnimation()
|
||||||
func Footstep()
|
func Footstep()
|
||||||
{
|
{
|
||||||
if (GetMaterialVal("DigFree", "Material", GetMaterial(0,10)) == 0)
|
if (GetMaterialVal("DigFree", "Material", GetMaterial(0,10)) == 0)
|
||||||
Sound("StepHard?");
|
Sound("Clonk::Movement::StepHard?");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var dir = Sign(GetXDir());
|
var dir = Sign(GetXDir());
|
||||||
|
@ -408,7 +408,7 @@ func Footstep()
|
||||||
B = clr & 0xff,
|
B = clr & 0xff,
|
||||||
};
|
};
|
||||||
CreateParticle("Dust", PV_Random(dir * -2, dir * -1), 8, PV_Random(dir * 2, dir * 1), PV_Random(-2, -3), PV_Random(36, 2 * 36), particles, 5);
|
CreateParticle("Dust", PV_Random(dir * -2, dir * -1), 8, PV_Random(dir * 2, dir * 1), PV_Random(-2, -3), PV_Random(36, 2 * 36), particles, 5);
|
||||||
Sound("StepSoft?");
|
Sound("Clonk::Movement::StepSoft?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -769,7 +769,7 @@ func FxFallTimer(object target, effect, int timer)
|
||||||
}
|
}
|
||||||
if(timer == 2 && GetYDir() < 1)
|
if(timer == 2 && GetYDir() < 1)
|
||||||
{
|
{
|
||||||
Sound("Rustle?");
|
Sound("Clonk::Movement::Rustle?");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(GetYDir() > 55 && GetAction() == "Jump")
|
if(GetYDir() > 55 && GetAction() == "Jump")
|
||||||
|
@ -1035,7 +1035,7 @@ func FxIntSwimTimer(pTarget, effect, iTime)
|
||||||
};
|
};
|
||||||
CreateParticle("Wave", 0, -4, (RandomX(-5,5)-(-1+2*GetDir())*4)/4, 0, 16, particles);
|
CreateParticle("Wave", 0, -4, (RandomX(-5,5)-(-1+2*GetDir())*4)/4, 0, 16, particles);
|
||||||
}
|
}
|
||||||
Sound("Splash?");
|
Sound("Liquids::Splash?");
|
||||||
}
|
}
|
||||||
// Animation speed by X
|
// Animation speed by X
|
||||||
if(effect.animation_name != "Swim")
|
if(effect.animation_name != "Swim")
|
||||||
|
@ -1109,7 +1109,7 @@ func DoKneel(bool create_dust)
|
||||||
|
|
||||||
SetXDir(0);
|
SetXDir(0);
|
||||||
SetAction("Kneel");
|
SetAction("Kneel");
|
||||||
Sound("RustleLand");
|
Sound("Clonk::Movement::RustleLand");
|
||||||
PlayAnimation("KneelDown", CLONK_ANIM_SLOT_Movement, Anim_Linear(0, 0, GetAnimationLength("KneelDown"), iKneelDownSpeed, ANIM_Remove), Anim_Linear(0, 0, 1000, 5, ANIM_Remove));
|
PlayAnimation("KneelDown", CLONK_ANIM_SLOT_Movement, Anim_Linear(0, 0, GetAnimationLength("KneelDown"), iKneelDownSpeed, ANIM_Remove), Anim_Linear(0, 0, 1000, 5, ANIM_Remove));
|
||||||
|
|
||||||
ScheduleCall(this, "EndKneel", iKneelDownSpeed, 1);
|
ScheduleCall(this, "EndKneel", iKneelDownSpeed, 1);
|
||||||
|
@ -1150,7 +1150,7 @@ func DoRoll()
|
||||||
func OnStartRoll()
|
func OnStartRoll()
|
||||||
{
|
{
|
||||||
SetTurnForced(GetDir());
|
SetTurnForced(GetDir());
|
||||||
Sound("Roll");
|
Sound("Clonk::Movement::Roll");
|
||||||
if(GetDir() == 1) lAnim.rollDir = 1;
|
if(GetDir() == 1) lAnim.rollDir = 1;
|
||||||
else
|
else
|
||||||
lAnim.rollDir = -1;
|
lAnim.rollDir = -1;
|
||||||
|
@ -1237,7 +1237,7 @@ func FxIntDigStart(pTarget, effect, fTmp)
|
||||||
UpdateAttach();
|
UpdateAttach();
|
||||||
|
|
||||||
// Sound
|
// Sound
|
||||||
Sound("Dig?");
|
Sound("Clonk::Action::Dig::Dig?");
|
||||||
|
|
||||||
// Set proper turn type
|
// Set proper turn type
|
||||||
SetTurnType(0);
|
SetTurnType(0);
|
||||||
|
@ -1247,7 +1247,7 @@ func FxIntDigTimer(pTarget, effect, iTime)
|
||||||
{
|
{
|
||||||
if(iTime % 36 == 0)
|
if(iTime % 36 == 0)
|
||||||
{
|
{
|
||||||
Sound("Dig?");
|
Sound("Clonk::Action::Dig::Dig?");
|
||||||
}
|
}
|
||||||
if( (iTime-18) % 36 == 0 || iTime > 35)
|
if( (iTime-18) % 36 == 0 || iTime > 35)
|
||||||
{
|
{
|
||||||
|
|
|
@ -113,9 +113,9 @@ protected func CatchBlow()
|
||||||
protected func Hurt()
|
protected func Hurt()
|
||||||
{
|
{
|
||||||
if(gender == 0)
|
if(gender == 0)
|
||||||
Sound("Hurt?");
|
Sound("Clonk::Verbal::Hurt?");
|
||||||
else
|
else
|
||||||
Sound("FHurt?");
|
Sound("Clonk::Verbal::FHurt?");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected func Grab(object pTarget, bool fGrab)
|
protected func Grab(object pTarget, bool fGrab)
|
||||||
|
@ -149,9 +149,9 @@ protected func Death(int killed_by)
|
||||||
if (!this.silent_death)
|
if (!this.silent_death)
|
||||||
{
|
{
|
||||||
if(gender == 0)
|
if(gender == 0)
|
||||||
Sound("Die");
|
Sound("Clonk::Verbal::Die");
|
||||||
else
|
else
|
||||||
Sound("FDie");
|
Sound("Clonk::Verbal::FDie");
|
||||||
|
|
||||||
DeathAnnounce();
|
DeathAnnounce();
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ public func Eat(object food)
|
||||||
{
|
{
|
||||||
Heal(food->NutritionalValue());
|
Heal(food->NutritionalValue());
|
||||||
food->RemoveObject();
|
food->RemoveObject();
|
||||||
Sound("Munch?");
|
Sound("Clonk::Action::Munch?");
|
||||||
SetAction("Eat");
|
SetAction("Eat");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ private func FxMoveTimer(object target, effect fx, int time)
|
||||||
{
|
{
|
||||||
if (!GBackLiquid(0, -3) && !fx.is_explosive)
|
if (!GBackLiquid(0, -3) && !fx.is_explosive)
|
||||||
SetGraphics("3");
|
SetGraphics("3");
|
||||||
Sound("Bubble*");
|
Sound("Liquids::Bubble*");
|
||||||
FadeOut(50, true);
|
FadeOut(50, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ public func Construction()
|
||||||
}
|
}
|
||||||
|
|
||||||
AddEffect("Move", this, 1, 2, this);
|
AddEffect("Move", this, 1, 2, this);
|
||||||
Sound("Bubble*");
|
Sound("Liquids::Bubble*");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,15 +66,15 @@ protected func FxIntEarthquakeStart(object target, effect)
|
||||||
{
|
{
|
||||||
// Start sound at quake local coordinates.
|
// Start sound at quake local coordinates.
|
||||||
// < Maikel> Global until someone implements non-object local sounds
|
// < Maikel> Global until someone implements non-object local sounds
|
||||||
Sound("Earthquake", true, 100, nil, 1);
|
Sound("Environment::Disasters::Earthquake", true, 100, nil, 1);
|
||||||
return FX_OK;
|
return FX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected func FxIntEarthquakeStop(object target, effect)
|
protected func FxIntEarthquakeStop(object target, effect)
|
||||||
{
|
{
|
||||||
// Stop sound.
|
// Stop sound.
|
||||||
Sound("Earthquake", true, 100, nil, -1);
|
Sound("Environment::Disasters::Earthquake", true, 100, nil, -1);
|
||||||
Sound("EarthquakeEnd",true);
|
Sound("Environment::Disasters::EarthquakeEnd",true);
|
||||||
return FX_OK;
|
return FX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ protected func Hit(int dx, int dy)
|
||||||
// Acid kills rockfall
|
// Acid kills rockfall
|
||||||
if (GetMaterialVal("Corrosive", "Material", GetMaterial()))
|
if (GetMaterialVal("Corrosive", "Material", GetMaterial()))
|
||||||
{
|
{
|
||||||
Sound("Pshshsh");
|
Sound("Liquids::Pshshsh");
|
||||||
var sz = Max(GetCon()/10, 5);
|
var sz = Max(GetCon()/10, 5);
|
||||||
var particles = new Particles_Dust() { Size = sz*3, };
|
var particles = new Particles_Dust() { Size = sz*3, };
|
||||||
if (is_explosive)
|
if (is_explosive)
|
||||||
|
@ -244,7 +244,7 @@ protected func Hit(int dx, int dy)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sound.
|
// Sound.
|
||||||
Sound("EarthquakeEnd", nil, 3 * GetCon() / 2);
|
Sound("Environment::Disasters::EarthquakeEnd", nil, 3 * GetCon() / 2);
|
||||||
StonyObjectHit(dx, dy);
|
StonyObjectHit(dx, dy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,7 @@ private func SplitRock()
|
||||||
CreateParticle("SmokeDirty", PV_Random(-5, 5), PV_Random(-5, 5), 0, PV_Random(-2, 0), PV_Random(50, 100), rock_explode, 8);
|
CreateParticle("SmokeDirty", PV_Random(-5, 5), PV_Random(-5, 5), 0, PV_Random(-2, 0), PV_Random(50, 100), rock_explode, 8);
|
||||||
|
|
||||||
// Some sound effects.
|
// Some sound effects.
|
||||||
Sound("EarthquakeEnd", nil, 100);
|
Sound("Environment::Disasters::EarthquakeEnd", nil, 100);
|
||||||
|
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -43,7 +43,7 @@ private func Hit()
|
||||||
if (GetR() != 0) height *= -1;
|
if (GetR() != 0) height *= -1;
|
||||||
|
|
||||||
CreateParticle("SmokeDirty", PV_Random(-width, width), PV_Random(0, height), PV_Random(-5, 5), PV_Random(-5, 15), PV_Random(10, 60), particles, 200);
|
CreateParticle("SmokeDirty", PV_Random(-width, width), PV_Random(0, height), PV_Random(-5, 5), PV_Random(-5, 15), PV_Random(10, 60), particles, 200);
|
||||||
Sound("Rockfall*");
|
Sound("Hits::Materials::Rock::Rockfall*");
|
||||||
|
|
||||||
for (var i = 0; i < 4; i++)
|
for (var i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
|
@ -180,7 +180,7 @@ private func DrawWaterSource()
|
||||||
private func DoWaterdrop()
|
private func DoWaterdrop()
|
||||||
{
|
{
|
||||||
if (Random(9)) return;
|
if (Random(9)) return;
|
||||||
Sound("Waterdrop*");
|
Sound("Liquids::Waterdrop*");
|
||||||
}
|
}
|
||||||
|
|
||||||
local Name = "$Name$";
|
local Name = "$Name$";
|
||||||
|
|
|
@ -31,7 +31,7 @@ protected func FxIntWaterfallStart(object target, proplist effect, int temporary
|
||||||
effect.Strength = strength;
|
effect.Strength = strength;
|
||||||
effect.Material = mat;
|
effect.Material = mat;
|
||||||
// Start sound.
|
// Start sound.
|
||||||
target->Sound("Waterfall", false, 5 * effect.Strength, nil, 1);
|
target->Sound("Environment::Waterfall", false, 5 * effect.Strength, nil, 1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ protected func FxIntWaterfallStop(object target, proplist effect, bool temporary
|
||||||
if (temporary)
|
if (temporary)
|
||||||
return 1;
|
return 1;
|
||||||
// Stop sound.
|
// Stop sound.
|
||||||
target->Sound("Waterfall", false, 5 * effect.Strength, nil, -1);
|
target->Sound("Environment::Waterfall", false, 5 * effect.Strength, nil, -1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ public func SetSoundLocation(int x, int y)
|
||||||
// Update sound.
|
// Update sound.
|
||||||
var effect = GetEffect("IntWaterfall", this);
|
var effect = GetEffect("IntWaterfall", this);
|
||||||
if (effect)
|
if (effect)
|
||||||
Sound("Waterfall", false, 5 * effect.Strength, nil, 1);
|
Sound("Environment::Waterfall", false, 5 * effect.Strength, nil, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,7 @@ protected func CheckForClonks()
|
||||||
{
|
{
|
||||||
var team_clear = !ClearedByTeam(team);
|
var team_clear = !ClearedByTeam(team);
|
||||||
cleared_by_plr[plrid] = true;
|
cleared_by_plr[plrid] = true;
|
||||||
Sound("Cleared", false, 100, plr);
|
Sound("UI::Cleared", false, 100, plr);
|
||||||
cp_con->AddPlayerClearedCP(plr, this); // Notify parkour goal.
|
cp_con->AddPlayerClearedCP(plr, this); // Notify parkour goal.
|
||||||
if (ClearedByTeam(team) && team_clear)
|
if (ClearedByTeam(team) && team_clear)
|
||||||
cp_con->AddTeamClearedCP(team, this); // Notify parkour goal.
|
cp_con->AddTeamClearedCP(team, this); // Notify parkour goal.
|
||||||
|
@ -232,7 +232,7 @@ protected func CheckForClonks()
|
||||||
// Check finish status.
|
// Check finish status.
|
||||||
if (cp_mode & PARKOUR_CP_Finish)
|
if (cp_mode & PARKOUR_CP_Finish)
|
||||||
{
|
{
|
||||||
Sound("Cleared", false, 100, plr);
|
Sound("UI::Cleared", false, 100, plr);
|
||||||
cleared_by_plr[plrid] = true;
|
cleared_by_plr[plrid] = true;
|
||||||
if (team)
|
if (team)
|
||||||
{
|
{
|
||||||
|
|
|
@ -531,12 +531,12 @@ public func OnMoveAllToClicked(int menu_id)
|
||||||
|
|
||||||
if (transfered > 0)
|
if (transfered > 0)
|
||||||
{
|
{
|
||||||
Sound("SoftTouch*", true, nil, GetOwner());
|
Sound("Hits::SoftTouch*", true, nil, GetOwner());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Sound("BalloonPop", true, nil, GetOwner());
|
Sound("Objects::Balloon::Pop", true, nil, GetOwner());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -869,7 +869,7 @@ private func OnContentsSelection(symbol, extra_data)
|
||||||
if (!other_target->~IsContainer())
|
if (!other_target->~IsContainer())
|
||||||
{
|
{
|
||||||
// Todo: other sound for "nope".
|
// Todo: other sound for "nope".
|
||||||
Sound("LightMetalHit*", nil, 10, GetController(), nil, nil, -50);
|
Sound("Hits::Materials::Metal::LightMetalHit*", nil, 10, GetController(), nil, nil, -50);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -926,12 +926,12 @@ private func OnContentsSelection(symbol, extra_data)
|
||||||
// Did we at least transfer one item?
|
// Did we at least transfer one item?
|
||||||
if (successful_transfers > 0)
|
if (successful_transfers > 0)
|
||||||
{
|
{
|
||||||
Sound("SoftTouch*", true, nil, GetOwner());
|
Sound("Hits::SoftTouch*", true, nil, GetOwner());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Sound("BalloonPop", true, nil, GetOwner());
|
Sound("Objects::Balloon::Pop", true, nil, GetOwner());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ public func SetTime(int to_time)
|
||||||
var play_for = GetOwner();
|
var play_for = GetOwner();
|
||||||
if (play_for == NO_OWNER)
|
if (play_for == NO_OWNER)
|
||||||
play_for = nil;
|
play_for = nil;
|
||||||
Sound("Click", true, 80, play_for);
|
Sound("UI::Click", true, 80, play_for);
|
||||||
}
|
}
|
||||||
clock_gui_menu.text.Text = Format("<c %x>%02d:%02d</c>", color, minutes, seconds);
|
clock_gui_menu.text.Text = Format("<c %x>%02d:%02d</c>", color, minutes, seconds);
|
||||||
GuiUpdate(clock_gui_menu, clock_gui_id);
|
GuiUpdate(clock_gui_menu, clock_gui_id);
|
||||||
|
|
|
@ -34,7 +34,7 @@ public func Start(string name, int progress, ...)
|
||||||
}
|
}
|
||||||
started = true;
|
started = true;
|
||||||
// Sound effect.
|
// Sound effect.
|
||||||
Sound("Ding", true);
|
Sound("UI::Ding", true);
|
||||||
// Call start function of this scene.
|
// Call start function of this scene.
|
||||||
var fn_start = Format("%s_Start", seq_name);
|
var fn_start = Format("%s_Start", seq_name);
|
||||||
if (!Call(fn_start, ...))
|
if (!Call(fn_start, ...))
|
||||||
|
@ -108,7 +108,7 @@ public func Stop(bool no_remove)
|
||||||
// Per-player sequence callback.
|
// Per-player sequence callback.
|
||||||
RemovePlayer(plr);
|
RemovePlayer(plr);
|
||||||
}
|
}
|
||||||
Sound("Ding", true);
|
Sound("UI::Ding", true);
|
||||||
started = false;
|
started = false;
|
||||||
// Call stop function of this scene.
|
// Call stop function of this scene.
|
||||||
var fn_init = Format("~%s_Stop", seq_name);
|
var fn_init = Format("~%s_Stop", seq_name);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Eating */
|
/* Eating */
|
||||||
|
|
|
@ -8,7 +8,7 @@ protected func Construction()
|
||||||
|
|
||||||
func Hit()
|
func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Eating */
|
/* Eating */
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func IsWindmillProduct() { return true; }
|
public func IsWindmillProduct() { return true; }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("SoftHit1");
|
Sound("Hits::SoftHit1");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func Construction()
|
public func Construction()
|
||||||
|
|
|
@ -12,7 +12,7 @@ public func GetCarryTransform(clonk)
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func IsLoomProduct() { return true; }
|
public func IsLoomProduct() { return true; }
|
||||||
|
|
|
@ -14,7 +14,7 @@ public func GetCarryBone() { return "main"; }
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func IsFuel() { return true; }
|
public func IsFuel() { return true; }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
public func Hit()
|
public func Hit()
|
||||||
{
|
{
|
||||||
Sound("GlassHit?");
|
Sound("Hits::Materials::Glass::GlassHit?");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ private func CheckFree(bool by_dig_free)
|
||||||
AddEffect("MuchSparkle", this, 1, 1, this);
|
AddEffect("MuchSparkle", this, 1, 1, this);
|
||||||
this.Visibility = VIS_All;
|
this.Visibility = VIS_All;
|
||||||
// Also, some sound (delayed for audibility on visibility change)
|
// Also, some sound (delayed for audibility on visibility change)
|
||||||
if (by_dig_free) ScheduleCall(this, Global.Sound, 1,1, "DiamondDigOut");
|
if (by_dig_free) ScheduleCall(this, Global.Sound, 1,1, "Objects::DiamondDigOut");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ public func OnHitByPickaxe()
|
||||||
if(!c) return;
|
if(!c) return;
|
||||||
if(Random(3)) return;
|
if(Random(3)) return;
|
||||||
|
|
||||||
Sound("RockHit*");
|
Sound("Hits::Materials::Rock::RockHit*");
|
||||||
DetachMesh(attached_mesh);
|
DetachMesh(attached_mesh);
|
||||||
c->Exit(0, 0, 0, RandomX(-3, 3), RandomX(-3, -1), RandomX(-20, 20));
|
c->Exit(0, 0, 0, RandomX(-3, 3), RandomX(-3, -1), RandomX(-20, 20));
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ protected func Hit()
|
||||||
{
|
{
|
||||||
|
|
||||||
CastPXS("Earth", GetMaterialAmount() * GetStackCount(), 18);
|
CastPXS("Earth", GetMaterialAmount() * GetStackCount(), 18);
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ func Hit()
|
||||||
|
|
||||||
func Fuse()
|
func Fuse()
|
||||||
{
|
{
|
||||||
Sound("FuseShort");
|
Sound("Fire::FuseShort");
|
||||||
CreateParticle("Fire", 0, 0, PV_Random(-5, 5), PV_Random(-15, 5), PV_Random(10, 40), Particles_Glimmer(), 5);
|
CreateParticle("Fire", 0, 0, PV_Random(-5, 5), PV_Random(-15, 5), PV_Random(10, 40), Particles_Glimmer(), 5);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("IceHit?");
|
Sound("Hits::IceHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected func Construction()
|
protected func Construction()
|
||||||
|
|
|
@ -12,7 +12,7 @@ protected func Construction()
|
||||||
// Impact sound
|
// Impact sound
|
||||||
func Hit()
|
func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func RejectUse(object clonk)
|
public func RejectUse(object clonk)
|
||||||
|
|
|
@ -8,7 +8,7 @@ protected func Construction()
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,6 @@ func OnSale(int to_player, object sale_base)
|
||||||
|
|
||||||
func Hit()
|
func Hit()
|
||||||
{
|
{
|
||||||
Sound("GlassHit*");
|
Sound("Hits::Materials::Glass::GlassHit*");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
|
@ -41,7 +41,7 @@ public func ControlUse(object clonk, int x, int y, bool box)
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func IsMillIngredient() { return true; }
|
public func IsMillIngredient() { return true; }
|
||||||
|
|
|
@ -9,7 +9,7 @@ protected func Construction()
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
local Collectible = 1;
|
local Collectible = 1;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("WoodHit?");
|
Sound("Hits::Materials::Wood::WoodHit?");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ func FxIntAxeTimer(object clonk, effect, int time)
|
||||||
//This block is executed when the axe hits the tree
|
//This block is executed when the axe hits the tree
|
||||||
if((time + 25) % axe_swing_time == 1)
|
if((time + 25) % axe_swing_time == 1)
|
||||||
{
|
{
|
||||||
Sound("Chop?");
|
Sound("Environment::Tree::Chop?");
|
||||||
|
|
||||||
//Which direction does the clonk face?
|
//Which direction does the clonk face?
|
||||||
var x = 10;
|
var x = 10;
|
||||||
|
@ -243,7 +243,7 @@ func FxIntSplitTimer(object clonk, effect, int time)
|
||||||
//This block is executed when the axe hits the tree
|
//This block is executed when the axe hits the tree
|
||||||
if ((time + 25) % axe_swing_time == 1)
|
if ((time + 25) % axe_swing_time == 1)
|
||||||
{
|
{
|
||||||
Sound("Chop?");
|
Sound("Environment::Tree::Chop?");
|
||||||
|
|
||||||
//Which direction does the clonk face?
|
//Which direction does the clonk face?
|
||||||
var x = 10;
|
var x = 10;
|
||||||
|
@ -346,7 +346,7 @@ func CheckStrike(iTime)
|
||||||
DoWeaponSlow(obj, 200);
|
DoWeaponSlow(obj, 200);
|
||||||
|
|
||||||
// sound and done. We can only hit one target
|
// sound and done. We can only hit one target
|
||||||
Sound("WeaponHit?", false);
|
Sound("Objects::Weapons::WeaponHit?", false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,7 +156,7 @@ public func OnProjectileHit()
|
||||||
{
|
{
|
||||||
// Pop the balloon and tumble the rider.
|
// Pop the balloon and tumble the rider.
|
||||||
CreateParticle("Air", 0, -10, PV_Random(-10, 10), PV_Random(-10, 10), 10, Particles_Air(), 30);
|
CreateParticle("Air", 0, -10, PV_Random(-10, 10), PV_Random(-10, 10), 10, Particles_Air(), 30);
|
||||||
Sound("BalloonPop");
|
Sound("Objects::Balloon::Pop");
|
||||||
if (rider)
|
if (rider)
|
||||||
{
|
{
|
||||||
rider->SetAction("Tumble");
|
rider->SetAction("Tumble");
|
||||||
|
|
|
@ -19,7 +19,7 @@ public func ControlUseStart(object clonk)
|
||||||
balloon->SetParent(this);
|
balloon->SetParent(this);
|
||||||
|
|
||||||
// Sound.
|
// Sound.
|
||||||
Sound("BalloonInflate");
|
Sound("Objects::Balloon::Inflate");
|
||||||
|
|
||||||
// Make the clonk ride the balloon.
|
// Make the clonk ride the balloon.
|
||||||
clonk->SetAction("Ride", balloon);
|
clonk->SetAction("Ride", balloon);
|
||||||
|
@ -44,7 +44,7 @@ public func QueryRejectDeparture(object clonk)
|
||||||
|
|
||||||
public func Hit()
|
public func Hit()
|
||||||
{
|
{
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
public func IsInventorProduct() { return true; }
|
public func IsInventorProduct() { return true; }
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("DullMetalHit?");
|
Sound("Hits::Materials::Metal::DullMetalHit?");
|
||||||
if (iVolume >= 1)
|
if (iVolume >= 1)
|
||||||
{
|
{
|
||||||
if (GBackLiquid(0, 7) && GetMaterial(0, 7) != szLiquid)
|
if (GBackLiquid(0, 7) && GetMaterial(0, 7) != szLiquid)
|
||||||
return 0;
|
return 0;
|
||||||
EmptyBarrel(GetR());
|
EmptyBarrel(GetR());
|
||||||
Sound("Splash1");
|
Sound("Liquids::Splash1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,13 +30,13 @@ protected func Initialize()
|
||||||
|
|
||||||
private func Hit()
|
private func Hit()
|
||||||
{
|
{
|
||||||
Sound("DullWoodHit?");
|
Sound("Hits::Materials::Wood::DullWoodHit?");
|
||||||
if (iVolume >= 1)
|
if (iVolume >= 1)
|
||||||
{
|
{
|
||||||
if (GBackLiquid(0, 3) && GetMaterial(0, 3) != szLiquid)
|
if (GBackLiquid(0, 3) && GetMaterial(0, 3) != szLiquid)
|
||||||
return 0;
|
return 0;
|
||||||
EmptyBarrel(GetR());
|
EmptyBarrel(GetR());
|
||||||
Sound("Splash1");
|
Sound("Liquids::Splash1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ protected func FxFlightTimer(object pTarget, effect, int iEffectTime)
|
||||||
JumpOff(rider,30);
|
JumpOff(rider,30);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!Random(105)) Sound("Cracker");
|
if(!Random(105)) Sound("Fire::Cracker");
|
||||||
|
|
||||||
if(fuel<=0)
|
if(fuel<=0)
|
||||||
{
|
{
|
||||||
|
@ -169,7 +169,7 @@ protected func Hit()
|
||||||
JumpOff(rider);
|
JumpOff(rider);
|
||||||
}
|
}
|
||||||
//Message("I have hit something",this);
|
//Message("I have hit something",this);
|
||||||
Sound("GeneralHit?");
|
Sound("Hits::GeneralHit?");
|
||||||
if(GetEffect("Flight",this)) DoFireworks();
|
if(GetEffect("Flight",this)) DoFireworks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,9 +211,9 @@ func Launch(int angle, object clonk)
|
||||||
SetCategory(C4D_Vehicle);
|
SetCategory(C4D_Vehicle);
|
||||||
|
|
||||||
Exit();
|
Exit();
|
||||||
Sound("BoompackLaunch");
|
Sound("Objects::Boompack::Launch");
|
||||||
AddEffect("Flight",this,150,1,this);
|
AddEffect("Flight",this,150,1,this);
|
||||||
Sound("BoompackFly", false, 60, nil, 1);
|
Sound("Objects::Boompack::Fly", false, 60, nil, 1);
|
||||||
//AddEffect("HitCheck", this, 1,1, nil,nil, clonk, true);
|
//AddEffect("HitCheck", this, 1,1, nil,nil, clonk, true);
|
||||||
|
|
||||||
//Ride the rocket!
|
//Ride the rocket!
|
||||||
|
@ -245,7 +245,7 @@ func DoFireworks()
|
||||||
{
|
{
|
||||||
RemoveEffect("Flight",this);
|
RemoveEffect("Flight",this);
|
||||||
Fireworks();
|
Fireworks();
|
||||||
Sound("BlastFirework", false, 200);
|
Sound("Fire::BlastFirework", false, 200);
|
||||||
Explode(30);
|
Explode(30);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ private func Spill(int angle)
|
||||||
|
|
||||||
protected func Hit()
|
protected func Hit()
|
||||||
{
|
{
|
||||||
Sound("DullWoodHit?");
|
Sound("Hits::Materials::Wood::DullWoodHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Can collect IsBucketMaterial?
|
// Can collect IsBucketMaterial?
|
||||||
|
|
|
@ -47,14 +47,14 @@ private func Open()
|
||||||
{
|
{
|
||||||
StopAnimation(crateanim);
|
StopAnimation(crateanim);
|
||||||
crateanim = PlayAnimation("Open", 5, Anim_Linear(0, 0, GetAnimationLength("Open"), 22, ANIM_Hold), Anim_Const(1000));
|
crateanim = PlayAnimation("Open", 5, Anim_Linear(0, 0, GetAnimationLength("Open"), 22, ANIM_Hold), Anim_Const(1000));
|
||||||
Sound("ChestOpen");
|
Sound("Structures::Chest::Open");
|
||||||
}
|
}
|
||||||
|
|
||||||
private func Close()
|
private func Close()
|
||||||
{
|
{
|
||||||
StopAnimation(crateanim);
|
StopAnimation(crateanim);
|
||||||
crateanim = PlayAnimation("Close", 5, Anim_Linear(0, 0, GetAnimationLength("Close"), 15, ANIM_Hold), Anim_Const(1000));
|
crateanim = PlayAnimation("Close", 5, Anim_Linear(0, 0, GetAnimationLength("Close"), 15, ANIM_Hold), Anim_Const(1000));
|
||||||
Sound("ChestClose");
|
Sound("Structures::Chest::Close");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected func Definition(def)
|
protected func Definition(def)
|
||||||
|
@ -68,7 +68,7 @@ public func IsContainer() { return true; }
|
||||||
|
|
||||||
func Hit()
|
func Hit()
|
||||||
{
|
{
|
||||||
Sound("DullWoodHit?");
|
Sound("Hits::Materials::Wood::DullWoodHit?");
|
||||||
}
|
}
|
||||||
|
|
||||||
local Name = "$Name$";
|
local Name = "$Name$";
|
||||||
|
|
|
@ -61,7 +61,7 @@ private func Place(object clonk, int x, int y, bool box)
|
||||||
if(box) SetReady();
|
if(box) SetReady();
|
||||||
|
|
||||||
// put into ...
|
// put into ...
|
||||||
Sound("Connect");
|
Sound("Objects::Connect");
|
||||||
Exit(pos[0], pos[1], Angle(pos[0],pos[1]));
|
Exit(pos[0], pos[1], Angle(pos[0],pos[1]));
|
||||||
SetPosition(clonk->GetX()+pos[0], clonk->GetY()+pos[1]);
|
SetPosition(clonk->GetX()+pos[0], clonk->GetY()+pos[1]);
|
||||||
return true;
|
return true;
|
||||||
|
@ -74,7 +74,7 @@ public func Fuse()
|
||||||
if (GetAction() != "Fuse")
|
if (GetAction() != "Fuse")
|
||||||
{
|
{
|
||||||
if (!FindObject(Find_Category(C4D_StaticBack), Find_Func("IsFuse"), Find_ActionTargets(this)))
|
if (!FindObject(Find_Category(C4D_StaticBack), Find_Func("IsFuse"), Find_ActionTargets(this)))
|
||||||
Sound("Fuse");
|
Sound("Fire::Fuse");
|
||||||
SetAction("Fuse");
|
SetAction("Fuse");
|
||||||
// Object can't be collected anymore when it fuses.
|
// Object can't be collected anymore when it fuses.
|
||||||
this.Collectible = false;
|
this.Collectible = false;
|
||||||
|
@ -96,7 +96,7 @@ private func GetWall(int angle)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected func Hit() { Sound("GeneralHit?"); }
|
protected func Hit() { Sound("Hits::GeneralHit?"); }
|
||||||
|
|
||||||
protected func Incineration(int caused_by)
|
protected func Incineration(int caused_by)
|
||||||
{
|
{
|
||||||
|
@ -185,7 +185,7 @@ local ActMap = {
|
||||||
Delay = 1,
|
Delay = 1,
|
||||||
Length = 1,
|
Length = 1,
|
||||||
FacetBase = 1,
|
FacetBase = 1,
|
||||||
Sound = "Fusing",
|
Sound = "Fire::FuseLoop",
|
||||||
StartCall = "Fusing"
|
StartCall = "Fusing"
|
||||||
},
|
},
|
||||||
Ready = {
|
Ready = {
|
||||||
|
|
|
@ -63,7 +63,7 @@ protected func FxIntFusingStart(object target, proplist effect, int temporary)
|
||||||
if (temporary)
|
if (temporary)
|
||||||
return FX_OK;
|
return FX_OK;
|
||||||
SetAction("Fusing");
|
SetAction("Fusing");
|
||||||
Sound("FuseLoop", false, 75, nil, 1);
|
Sound("Fire::FuseLoop", false, 75, nil, 1);
|
||||||
return FX_OK;
|
return FX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ protected func FxIntFusingStop(object target, proplist effect, int reason, bool
|
||||||
{
|
{
|
||||||
if (temporary)
|
if (temporary)
|
||||||
return FX_OK;
|
return FX_OK;
|
||||||
Sound("FuseLoop", false, 75, nil, -1);
|
Sound("Fire::FuseLoop", false, 75, nil, -1);
|
||||||
return FX_OK;
|
return FX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue