Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP] Script Enabling/Variables
himynamebob1 Offline
Member

Posts: 57
Threads: 12
Joined: Jun 2012
Reputation: 0
#27
RE: [HELP] Script Enabling/Variables

//===========================================
// This runs when the player enters the map
void OnStart()
{
AddUseItemCallback("phekeg", "breakkegknife", "winekegpop", "boomkegopen", true);
AddTimer("brute", 13.0f, "noisy");
SetEntityCallbackFunc("bonfire_1", "boomkegopen22");

}
void boomkegopen22(string &in asItem, string &in asEntity)
{
if("type" == "OnIgnite")
{
AddUseItemCallback("phekegs2", "fullowine", "sheetmet", "boomkegopen23", true);
}
}


void boomkegopen23(string &in asItem, string &in asEntity)
{
SetEntityActive("glasnotdone", true);
RemoveItem("fullowine");
AddTimer("brute223", 5.0f, "outahere34");
}

void outahere34(string &in asTimer)
{
if(GetGlobalVarInt("proccess")==2)
{
SetEntityActive("glasnotdone", false);
SetEntityActive("done", true);
}

}

void boomkegopen2(string &in asItem, string &in asEntity)
{
SetEntityActive("glass_container_2", true);
AddTimer("brute223", 5.0f, "outahere3");
RemoveItem("glass_container_1");
PlaySoundAtEntity("bruto23", "19_pour_blood.snt", "Player", 0.0f, false);
}

void outahere3(string &in asTimer)
{
SetEntityActive("glass_container_2", false);
SetEntityActive("fullowine", true);
}

void boomkegopen(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("bruto2", "19_inject.snt", "Player", 0.0f, false);
SetEntityActive("breakkeg_1", true);
AddTimer("brute23", 2.0f, "outahere");
RemoveItem("breakkegknife");
AddUseItemCallback("phekegs", "glass_container_1", "boardone", "boomkegopen2", true);
}

void outahere(string &in asTimer)
{
SetEntityActive("wineout", true);
SetEntityActive("breakkeg_1", false);
FadeInSound("wineout", 1.0f, true);
CreateParticleSystemAtEntity("hhgh", "ps_liquid_epoxy.ps", "breakkeg_1", true);
}

void noisy(string &in asTimer)
{
PlaySoundAtEntity("bruto", "enabled01.snt", "brutenoise", 0.0f, false);
AddTimer("brute2", 4.5f, "noie");
}

void noie(string &in asTimer)
{
PlayMusic("04_amb.ogg", true, 1.0, 0.0f, 0, false);
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}
07-06-2012, 07:49 PM
Find


Messages In This Thread
RE: [HELP] Script Enabling? - by SilentStriker - 07-01-2012, 09:05 AM
RE: [HELP] Script Enabling? - by Ongka - 07-01-2012, 10:12 AM
RE: [HELP] Script Enabling? - by JMFStorm - 07-01-2012, 12:28 PM
RE: [HELP] Script Enabling? - by Your Computer - 07-01-2012, 03:03 PM
RE: [HELP] Script Enabling? - by himynamebob1 - 07-03-2012, 08:47 PM
RE: [HELP] Script Enabling? - by Cruzore - 07-03-2012, 09:05 PM
RE: [HELP] Script Enabling? - by himynamebob1 - 07-03-2012, 09:20 PM
RE: [HELP] Script Enabling? - by himynamebob1 - 07-04-2012, 04:56 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-04-2012, 09:31 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-04-2012, 09:49 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 12:15 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 09:41 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 09:48 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 10:14 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-06-2012, 01:39 AM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-06-2012, 09:21 AM
RE: [HELP] Script Enabling/Variables - by himynamebob1 - 07-06-2012, 07:49 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-06-2012, 08:58 PM



Users browsing this thread: 4 Guest(s)