Frictional Games Forum (read-only)
How to do so Grunts poofs - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to do so Grunts poofs (/thread-16077.html)

Pages: 1 2


How to do so Grunts poofs - putty992 - 06-12-2012

Hi! I wondering how to do the script so grunts poofs when they get close and if i want a third Teleporting naked guy how to put ive tried but it didnt worked :S THANKS FOR ANSWERS!!!!!! Big Grin


RE: How to do so Grunts poofs - MaZiCUT - 06-12-2012

Teleporting naked guy:


void OnStart ()
{
SetEntityPlayerInteractCallback("item", TeleportNakedGuyFunc, true); //name the "item" with the name of your item in the map
}

void TeleportNakedGuyFunc (string &in asEntity)
{
SetEntityActive ("NakedGuy", true); // name the "NakedGuy" as the ragdoll corpse entity in the map
AddPropForce(NakedGuy"", 0, 0, 0, "world"); // if you want it to fly in some direction. Try different values over the zero's.
PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, true);
}




And for the grunt poof you'll have to set him active/inactive in a script, and if you mean by just poof and never come back just make it a hallucination.



RE: How to do so Grunts poofs - Nice - 06-12-2012

yep it can be easily done in level editor. Select the grunt and mark it as hallucination and the distance it poofs.


RE: How to do so Grunts poofs - MaZiCUT - 06-12-2012

Oh and i forgot to tell, if you're going to have these scares, especially the teleporting naked guy wich is pretty much HATED in this community, atleast make your custom story serious and give it logic why the naked guy teleports out randomly.


RE: How to do so Grunts poofs - putty992 - 06-12-2012

It's for my friend

and what should i write after this in script ive got 2 teleported naked guys


void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_2", "NailThatSucker_1", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_3", "NailThatSucker_2", true, 1);

}


void NailThatSucker_3(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_3", true);
AddPropForce("TeleportedNakedGuy_3", 30000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_3", 0, false);
}

void NailThatSucker_1(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_2", true);
AddPropForce("TeleportedNakedGuy_2", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_2", 0, false);
}

void NailThatSucker(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy", true);
AddPropForce("TeleportedNakedGuy", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy", 0, false);
}

And the third one doesnt work :S


RE: How to do so Grunts poofs - CorinthianMerchant - 06-12-2012

Tell your friend he should drop this scare, everything is just wrong.
Edit: Why don't focus on atmosphere?


RE: How to do so Grunts poofs - Adny - 06-12-2012

(06-12-2012, 03:44 PM)CorinthianMerchant Wrote: Tell your friend he should drop this scare, everything is just wrong.
Just out of curiosity, do you ever have anything kind or constructive to say, you know, that would actually help these people? Instead of complaining about how wrong everyone else is, why not give them relevant/practical advice? Why not suggest other scares they could use, or how to script/map more efficiently?

It's like you invade every jumpscare thread and try to incite some sort of MLP or PDP flame war. Not very productive imo Undecided


RE: How to do so Grunts poofs - Adny - 06-12-2012

(06-12-2012, 03:57 PM)Robosprog Wrote:
(06-12-2012, 03:51 PM)andyrockin123 Wrote:
(06-12-2012, 03:44 PM)CorinthianMerchant Wrote: Tell your friend he should drop this scare, everything is just wrong.
Just out of curiosity, do you ever have anything kind or constructive to say, you know, that would actually help these people? Instead of complaining about how wrong everyone else is, why not give them relevant/practical advice? Why not suggest other scares they could use, or how to script/map more efficiently?

It's like you invade every jumpscare thread and try to incite some sort of MLP or PDP flame war. Not very productive imo Undecided
Do you ever not just try and preach against people who oppose these scares and pewdiepie maps?
Out of my 200'ish posts on this website, I can assure you less than 10 have gone towards "
preaching against people who oppose these scares and pewdiepie maps".

Its just ridiculous to see every thread with someone new to the community get immediately shot down by a few of the same few people who clearly hate all things PDP/MLP (neither of which I am a fan of) instead of helping someone who clearly is a big enough fan of this horror game that we all play to learn to properly mod the game and have fun with it.

I'm not sure how active you are on the forums, but over the past few months there have been countless threads that end with someone's first custom story/thread/post getting flamed and hated on, just because a few people don't like the particular style. There is a broad line between constructive criticism and bashing, but these people find a way to cross it anyways.

To be quite honest, I find many of the "good" mods out, not that good. Although it is a step in the right direction, everyone should be striving to make mods comparable to the original game (ie Followed By Death was spot on). It is obvious that standards have dropped recently as to what constitutes a good custom story. Basically what I'm saying is a lot of the "bad" mods aren't that far off from "good" mods now in terms of mapping/scripting.

Finally, I apologize if I'm not on the bandwagon of hating the "proper" things. Also, do you not think Corinthian's comment was a bit harsh or rude considering the OP's simple request? If you took the time to read that, thank you.


RE: How to do so Grunts poofs - Datguy5 - 06-12-2012

Its kinda funny how every thread that includes teleporting naked guys or poofers turn into a war.

If you have friends like i have,then you should put alot of monsters and naked guys xD
I sometimes make them stories and then they play it.They dont have amnesia so they arent scared by the atmosphere much.


RE: How to do so Grunts poofs - putty992 - 06-12-2012

Can just u guys stops fighting eachother and help me instead or u can fight in pm or something...


How should I write after this ?


void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_2", "NailThatSucker_1", true, 1);

}


void NailThatSucker_1(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_2", true);
AddPropForce("TeleportedNakedGuy_2", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_2", 0, false);
}

void NailThatSucker(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy", true);
AddPropForce("TeleportedNakedGuy", -30000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy", 0, false);
}




thats my script 2 teleporting naked guys that works and i want a third one Smile