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


Thread Rating:
  • 3 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My problems
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#53
RE: My problems

Spoiler below!
void OnStart()

{
AddEntityCollideCallback("Player", "Message_7", "Message7", true, 1);
AddEntityCollideCallback("Player", "Message_8", "Message8", true, 1);
AddUseItemCallback("", "orb_door1", "orbchamber1_1", "KeyOnDoor111", true);
AddUseItemCallback("", "orb_door2", "orbchamber1_2", "KeyOnDoor1111", true);
AddUseItemCallback("", "Key_3", "Prison_11", "KeyOnDoor11", true);
SetLocalVarInt("Var1", 0);
SetEntityPlayerInteractCallback("button1", "func1", true);
SetEntityPlayerInteractCallback("button2", "func2", true);
SetEntityPlayerInteractCallback("button3", "func3", true);
AddEntityCollideCallback("Player", "Message_4", "Message4", true, 1);
AddEntityCollideCallback("Player", "Message_6", "Message6", true, 1);
AddEntityCollideCallback("Player" , "brutetrap_scriptarea" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "grunttrap_scriptarea" , "MonsterFunc2" , true , 1);
AddEntityCollideCallback("Player" , "body_trap_script_area" , "bodytrapfunc" , true , 1);
PreloadSound("brutetrapsound.ogg");
AddEntityCollideCallback("Player", "brutetrapsoundarea", "Sound", true, 1);
AddEntityCollideCallback("Player", "Message_5", "Message5", true, 1);
AddEntityCollideCallback("Player", "Message_3", "Message3", true, 1);
AddEntityCollideCallback("Player", "slamdoor", "func_slam", true, 1);
AddEntityCollideCallback("Player", "slamdoor2", "func_slam2", true, 1);
AddEntityCollideCallback("Player", "Play_Music_Script_Area", "PlayMusic1", true, 1);
AddEntityCollideCallback("Player", "KillTheLights", "LightsOut", true, 1);
AddUseItemCallback("", "crowbar_1", "mansiondoor_1", "UsedCrowbarOnDoor", true);
AddEntityCollideCallback("crowbar_joint_1", "ScriptArea_1", "CollideAreaBreakDoor", true, 1);
SetEntityCallbackFunc("des_orb", "OnPickup125");
AddUseItemCallback("", "des_orb", "Map_3_go", "UsedKeyOnDoor125", true);
}

void UsedCrowbarOnDoor(string &in asItem, string &in asEntity)
{
AddTimer("", 0.2, "TimerSwitchShovel");
RemoveItem("crowbar_1");
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Map_3_go", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Map_3_go", 0, false);
RemoveItem("key_1");
}

void OnPickup125(string &in asEntity, string &in type)
{
SetEntityActive(servant_brute_125", true);
ShowEnemyPlayerPosition("servant_brute_125");
}

void TimerSwitchShovel(string &in asTimer)
{
PlaySoundAtEntity("","puzzle_place_jar.snt", "", 0, false);
SetEntityActive("crowbar_joint_1", true);
}


void CollideAreaBreakDoor(string &in asParent, string &in asChild, int alState)
{
AddPlayerSanity(25);
PlayMusic("10_puzzle01.ogg", false, 0.7, 0.1, 10, false);
SetSwingDoorLocked("mansiondoor_1", false, true);
AddPropImpulse("mansiondoor_1", 0, 0, -50, "World");
SetSwingDoorDisableAutoClose("mansiondoor_1", true);
SetSwingDoorClosed("mansiondoor_1", false, false);
SetMoveObjectState("mansiondoor_1", 1);
PlaySoundAtEntity("","break_wood_metal", "AreaBreakEffect", 0, false);
CreateParticleSystemAtEntity("", "ps_hit_wood", "AreaBreakEffect", false);
SetEntityActive("crowbar_joint_1", false);
SetLocalVarInt("Door", 1);
}

/////////////////////////////////////////////////////////////////////////////////////////////////////

void bodytrapfunc(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("body_trap" , true);
GiveSanityDamage(5.0f, true);
}

void PlayMusic1(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Ambience.ogg", true, 1, 1, 0, false);
}

void PlayMusic(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("sound", "brutetrapsound.ogg", "brutetrapsoundarea", 0.0, false);
}

void LightsOut(string &in asParent, string &in asChild, int alState)
{
SetLampLit("lamp_1", false, true);
AddTimer("", 0.1, "Out2");
}


void Out2(string &in asTimer)
{
SetLampLit("lamp_2", false, true);
AddTimer("", 0.1, "Out3");
}


void Out3(string &in asTimer)
{
SetLampLit("lamp_3", false, true);
AddTimer("", 0.1, "Out4");
}


void Out4(string &in asTimer)
{
SetLampLit("lamp_4", false, true);
AddTimer("", 0.1, "Out5");
}


void Out5(string &in asTimer)
{
SetLampLit("lamp_5", false, true);
AddTimer("", 0.1, "Out6");
}


void Out6(string &in asTimer)
{
SetLampLit("lamp_6", false, true);
}

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("brutetrap" , true);
}

void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("trapgrunt3" , true);
ShowEnemyPlayerPosition("trapgrunt3");
AddTimer("", 20.0f, "GruntDisable3");
}

void GruntDisable3(string &in asTimer)
{
SetEntityActive("trapgrunt3", false);
SetMessage("Messages", "Popup7", 0);
}

void KeyOnDoor11(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Prison_11", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Prison_11", 0.0f, true);
RemoveItem("key_3");
}

void KeyOnDoor111(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("orbchamber1_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "orbchamber1_1", 0.0f, true);
Removeitem("orb_door1");
}

void KeyOnDoor1111(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("orbchamber1_2", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "orbchamber1_2", 0.0f, true);
RemoveItem("orb_door2");
}

void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup4", 0);
}

void Message3(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup5", 0);
}

void Message5(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup5", 0);
}

void Message6(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup6", 0);
}

void Message8(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup8", 0);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("doorman", true, true);

SetSwingDoorLocked("doorman", true, true);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false);

PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);
}

void func_slam2(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("orbchamber1_2", true, true);

SetSwingDoorLocked("orbchamber1_2", true, true);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false);

PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);
}

void func1(string &in asEntity)
{
AddLocalVarInt("Var1", 1);
func5();
}

void func2(string &in asEntity)
{
AddLocalVarInt("Var1", 1);
func5();
}

void func3(string &in asEntity)
{
AddLocalVarInt("Var1", 1);
func5();
}

void func4(string &in asEntity)
{
AddLocalVarInt("Var1", 1);
func5();
}

void func5()
{
if(GetLocalVarInt("Var1") == 3)
{
SetSwingDoorLocked("doorman", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "doorman", 0.5f, false);
AddPlayerSanity(10);
}}

I think it happened when i added the use of the knife on the pig that gives you the key. :S
10-19-2012, 03:56 PM
Website Find


Messages In This Thread
My problems - by naseem142 - 10-14-2012, 07:26 AM
RE: My problems - by Robby - 10-14-2012, 08:34 AM
RE: My problems - by naseem142 - 10-14-2012, 08:38 AM
RE: My problems - by Robby - 10-14-2012, 08:43 AM
RE: My problems - by naseem142 - 10-14-2012, 08:49 AM
RE: My problems - by Robby - 10-14-2012, 08:51 AM
RE: My problems - by The chaser - 10-14-2012, 09:34 AM
RE: My problems - by Robby - 10-14-2012, 09:41 AM
RE: My problems - by The chaser - 10-14-2012, 09:46 AM
RE: My problems - by naseem142 - 10-14-2012, 09:54 AM
RE: My problems - by The chaser - 10-14-2012, 09:57 AM
RE: My problems - by naseem142 - 10-14-2012, 10:18 AM
RE: My problems - by Your Computer - 10-14-2012, 10:22 AM
RE: My problems - by naseem142 - 10-14-2012, 11:44 AM
RE: My problems - by The chaser - 10-14-2012, 01:13 PM
RE: My problems - by naseem142 - 10-14-2012, 01:45 PM
RE: My problems - by Robby - 10-15-2012, 05:28 AM
RE: My problems - by naseem142 - 10-18-2012, 02:54 PM
RE: My problems - by The chaser - 10-18-2012, 03:09 PM
RE: My problems - by naseem142 - 10-18-2012, 04:10 PM
RE: My problems - by FlawlessHappiness - 10-18-2012, 04:44 PM
RE: My problems - by naseem142 - 10-18-2012, 05:52 PM
RE: My problems - by Robby - 10-18-2012, 05:58 PM
RE: My problems - by naseem142 - 10-18-2012, 06:28 PM
RE: My problems - by The chaser - 10-18-2012, 04:44 PM
RE: My problems - by FlawlessHappiness - 10-18-2012, 06:30 PM
RE: My problems - by naseem142 - 10-18-2012, 06:34 PM
RE: My problems - by FlawlessHappiness - 10-18-2012, 06:36 PM
RE: My problems - by Robby - 10-18-2012, 06:37 PM
RE: My problems - by The chaser - 10-18-2012, 06:38 PM
RE: My problems - by naseem142 - 10-18-2012, 08:51 PM
RE: My problems - by naseem142 - 10-19-2012, 12:07 PM
RE: My problems - by The chaser - 10-19-2012, 12:50 PM
RE: My problems - by naseem142 - 10-19-2012, 12:56 PM
RE: My problems - by FlawlessHappiness - 10-19-2012, 01:18 PM
RE: My problems - by The chaser - 10-19-2012, 01:26 PM
RE: My problems - by FlawlessHappiness - 10-19-2012, 12:48 PM
RE: My problems - by Robby - 10-19-2012, 12:52 PM
RE: My problems - by FlawlessHappiness - 10-19-2012, 12:56 PM
RE: My problems - by The chaser - 10-19-2012, 12:57 PM
RE: My problems - by naseem142 - 10-19-2012, 02:12 PM
RE: My problems - by Robby - 10-19-2012, 02:20 PM
RE: My problems - by naseem142 - 10-19-2012, 03:00 PM
RE: My problems - by Robby - 10-19-2012, 03:05 PM
RE: My problems - by naseem142 - 10-19-2012, 03:08 PM
RE: My problems - by Robby - 10-19-2012, 03:13 PM
RE: My problems - by naseem142 - 10-19-2012, 03:25 PM
RE: My problems - by Robby - 10-19-2012, 03:26 PM
RE: My problems - by naseem142 - 10-19-2012, 03:38 PM
RE: My problems - by Robby - 10-19-2012, 03:40 PM
RE: My problems - by naseem142 - 10-19-2012, 03:51 PM
RE: My problems - by Robby - 10-19-2012, 03:54 PM
RE: My problems - by naseem142 - 10-19-2012, 03:56 PM
RE: My problems - by Robby - 10-19-2012, 03:58 PM
RE: My problems - by naseem142 - 10-19-2012, 04:21 PM
RE: My problems - by Robby - 10-19-2012, 04:23 PM
RE: My problems - by naseem142 - 10-19-2012, 04:26 PM
RE: My problems - by Robby - 10-19-2012, 04:29 PM
RE: My problems - by The chaser - 10-19-2012, 04:30 PM
RE: My problems - by Robby - 10-19-2012, 04:36 PM
RE: My problems - by naseem142 - 10-19-2012, 04:36 PM
RE: My problems - by Robby - 10-19-2012, 04:37 PM
RE: My problems - by naseem142 - 10-19-2012, 04:35 PM
RE: My problems - by naseem142 - 10-19-2012, 04:37 PM
RE: My problems - by Robby - 10-19-2012, 04:38 PM
RE: My problems - by The chaser - 10-19-2012, 04:40 PM
RE: My problems - by Robby - 10-19-2012, 04:46 PM
RE: My problems - by naseem142 - 10-19-2012, 04:44 PM
RE: My problems - by The chaser - 10-19-2012, 04:52 PM
RE: My problems - by Robby - 10-19-2012, 04:53 PM
RE: My problems - by naseem142 - 10-19-2012, 04:55 PM
RE: My problems - by The chaser - 10-19-2012, 04:55 PM
RE: My problems - by naseem142 - 10-19-2012, 04:57 PM
RE: My problems - by Robby - 10-19-2012, 05:12 PM
RE: My problems - by naseem142 - 10-19-2012, 05:15 PM
RE: My problems - by Robby - 10-19-2012, 05:16 PM
RE: My problems - by naseem142 - 10-19-2012, 05:33 PM
RE: My problems - by Robby - 10-19-2012, 05:35 PM
RE: My problems - by naseem142 - 10-19-2012, 06:15 PM
RE: My problems - by The chaser - 10-19-2012, 08:13 PM
RE: My problems - by The chaser - 10-20-2012, 04:57 PM
RE: My problems - by Robby - 10-19-2012, 06:16 PM
RE: My problems - by naseem142 - 10-19-2012, 06:26 PM
RE: My problems - by Robby - 10-19-2012, 06:34 PM
RE: My problems - by naseem142 - 10-19-2012, 06:38 PM
RE: My problems - by Robby - 10-19-2012, 07:13 PM
RE: My problems - by Robby - 10-20-2012, 04:23 PM
RE: My problems - by naseem142 - 10-21-2012, 08:49 AM
RE: My problems - by Adny - 10-21-2012, 08:57 AM
RE: My problems - by naseem142 - 10-21-2012, 09:00 AM
RE: My problems - by FlawlessHappiness - 10-21-2012, 09:53 AM
RE: My problems - by rammstein1999 - 10-21-2012, 11:31 AM
RE: My problems - by FlawlessHappiness - 10-21-2012, 01:25 PM
RE: My problems - by The chaser - 10-21-2012, 01:30 PM
RE: My problems - by naseem142 - 10-21-2012, 05:35 PM
RE: My problems - by Robby - 10-21-2012, 05:40 PM
RE: My problems - by naseem142 - 10-21-2012, 05:51 PM
RE: My problems - by Robby - 10-23-2012, 05:58 PM
RE: My problems - by naseem142 - 10-23-2012, 05:34 PM
RE: My problems - by The chaser - 10-23-2012, 05:44 PM
RE: My problems - by naseem142 - 10-23-2012, 05:45 PM
RE: My problems - by FlawlessHappiness - 10-23-2012, 06:35 PM
RE: My problems - by Robby - 10-23-2012, 06:40 PM
RE: My problems - by naseem142 - 10-25-2012, 09:50 AM
RE: My problems - by Kreekakon - 10-25-2012, 09:53 AM
RE: My problems - by naseem142 - 10-25-2012, 09:54 AM
RE: My problems - by The chaser - 10-25-2012, 10:52 AM
RE: My problems - by naseem142 - 10-25-2012, 10:55 AM
RE: My problems - by naseem142 - 10-26-2012, 11:34 AM
RE: My problems - by The chaser - 10-26-2012, 01:00 PM
RE: My problems - by naseem142 - 10-27-2012, 10:42 AM
RE: My problems - by Adny - 10-27-2012, 10:46 AM
RE: My problems - by naseem142 - 10-27-2012, 11:43 AM
RE: My problems - by naseem142 - 10-28-2012, 08:00 AM
RE: My problems - by naseem142 - 10-28-2012, 09:04 AM
RE: My problems - by Robby - 10-28-2012, 09:09 AM
RE: My problems - by naseem142 - 10-28-2012, 09:49 AM
RE: My problems - by The chaser - 10-28-2012, 11:10 AM
RE: My problems - by naseem142 - 10-29-2012, 11:26 AM
RE: My problems - by Adny - 10-29-2012, 11:29 AM
RE: My problems - by naseem142 - 10-29-2012, 11:31 AM
RE: My problems - by naseem142 - 10-29-2012, 02:57 PM
RE: My problems - by FlawlessHappiness - 10-29-2012, 03:04 PM
RE: My problems - by naseem142 - 10-29-2012, 03:34 PM
RE: My problems - by Robby - 10-29-2012, 03:45 PM
RE: My problems - by naseem142 - 10-29-2012, 06:46 PM
RE: My problems - by FlawlessHappiness - 10-29-2012, 06:58 PM
RE: My problems - by naseem142 - 10-30-2012, 08:49 AM
RE: My problems - by FlawlessHappiness - 10-30-2012, 09:58 AM
RE: My problems - by The chaser - 10-30-2012, 12:47 PM
RE: My problems - by FlawlessHappiness - 10-30-2012, 01:06 PM
RE: My problems - by The chaser - 10-30-2012, 01:11 PM
RE: My problems - by The chaser - 10-30-2012, 04:20 PM
RE: My problems - by FlawlessHappiness - 10-30-2012, 03:58 PM
RE: My problems - by naseem142 - 11-04-2012, 12:09 PM
RE: My problems - by naseem142 - 11-04-2012, 01:33 PM
RE: My problems - by The chaser - 11-04-2012, 01:48 PM
RE: My problems - by johnbox - 11-04-2012, 01:56 PM
RE: My problems - by Kreekakon - 11-04-2012, 02:05 PM
RE: My problems - by naseem142 - 11-04-2012, 03:13 PM
RE: My problems - by Kreekakon - 11-04-2012, 03:17 PM
RE: My problems - by naseem142 - 11-04-2012, 03:27 PM
RE: My problems - by naseem142 - 11-09-2012, 10:13 AM
RE: My problems - by FlawlessHappiness - 11-09-2012, 11:43 AM
RE: My problems - by naseem142 - 11-09-2012, 01:55 PM
RE: My problems - by The chaser - 11-09-2012, 01:59 PM
RE: My problems - by FlawlessHappiness - 11-09-2012, 02:24 PM
RE: My problems - by naseem142 - 11-09-2012, 04:01 PM



Users browsing this thread: 5 Guest(s)