Frictional Games Forum (read-only)
changing maps scripts - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: HPL1 Engine (https://www.frictionalgames.com/forum/forum-28.html)
+--- Thread: changing maps scripts (/thread-25307.html)



changing maps scripts - baselsayeh - 05-16-2014

Hello

im gonna teatching you how to edit map script files
tools needed:
notepad++
ill use first map "level01_cells"

open maps folder then
open hps file

if you dont know how to script learn angelscript
http://www.angelcode.com/angelscript/

some examples:

disable all music:
replace
PlayGameMusic
with
//PlayGameMusic

million flare and battries
in
OnUpdate()
add
GiveItem("battery","item_battery.ent", -1);
GiveItem("flare01","items_flare.ent", -1);

replace level music with your own music
first convert your sound file to ogg
then place it in music folder
then replace
PlayGameMusic("Penumbra_BP_A3"
with
PlayGameMusic("Your ogg file"


RE: changing maps scripts - DnALANGE - 05-17-2014

What da...??
What is this for...
I have no clue at all what you try to say here....
-
You should explane what you are doing and what it should do what you try to.. say here...


RE: changing maps scripts - Romulator - 05-17-2014

It's for Penumbra, scripting in it.

As far as I can tell. Tongue


RE: changing maps scripts - victorkim890(KimmyChimmy) - 07-21-2014

no cs in penumbra :/