Frictional Games Forum (read-only)

Full Version: changing maps scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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"
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...
It's for Penumbra, scripting in it.

As far as I can tell. Tongue
no cs in penumbra :/