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


Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating script support, taking requests
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#11
RE: Updating script support, taking requests

Thanks Patrik!

I want to throw in behind Felixmole's suggestions, they would be really great if possible.
A global timer would also be really neat.


There are some others here that would be easy & clean as simple in-script functions rather than exposed engine functions (i.e. don't require messy work-arounds)
Quote:- if-else function that the parameter could turn Integers to Bools and vice-versa?
- 'AddRepeater' Adds a repeater to the script that keeps calling a function
- 'ChainEvent' Does three events in one consecutive order
If those can go in without much effort then great, but if not I'm happy to write them in a generic form and stick them up on the wiki in a easy-to-copy/paste way, or in tutorial form, to save Patrik & Co some time, along with any others that would work without nasty workarounds

08-27-2013, 03:41 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#12
RE: Updating script support, taking requests

One thing everybody wants is probably to be able to completely turn off screen effects/sanity loss from looking at a monster through script. Heard someone managed a work-around by changing game.cfg for full- conversion, though that resulted in the effects being off for the entire game ruining flexibility, So a script function would be lovely for those people
08-27-2013, 04:02 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#13
RE: Updating script support, taking requests

I have a request:

Besides what people have said, a keyboard sensor: When you press "T" (or any letter specified by the SCRIPTER) something will happen:

void GetKeyboardSensor (string &in asLetter, string &in asFunction)
It would be useful for adding extra stuff in custom stories, so they weren't full conversions.

Example:

void OnStart()
{
GetKeyboardSensor ("V", "Shout")
}

void Shout (string &in asInput) //or similar
{
PlayGuiSound("Shout_distraction.snt", 1);
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-27-2013, 05:04 PM
Find
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#14
RE: Updating script support, taking requests

(08-27-2013, 05:04 PM)The chaser Wrote: I have a request:

Besides what people have said, a keyboard sensor: When you press "T" (or any letter specified by the SCRIPTER) something will happen:

void GetKeyboardSensor (string &in asLetter, string &in asFunction)
It would be useful for adding extra stuff in custom stories, so they weren't full conversions.

Example:

void OnStart()
{
GetKeyboardSensor ("V", "Shout")
}

void Shout (string &in asInput) //or similar
{
PlayGuiSound("Shout_distraction.snt", 1);
}

Totaly agree with that ... that would be awesome !

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
08-27-2013, 06:16 PM
Find
plutomaniac Offline
Super Moderator

Posts: 6,368
Threads: 45
Joined: May 2011
Reputation: 183
#15
RE: Updating script support, taking requests

(08-27-2013, 03:20 PM)Apjjm Wrote: Input
Spoiler below!
  • GetKeyState() for a given key code, or something similar
  • Similar deal for mouse buttons

Yes, mouse and keyboard input would be great. Also, being able to disable lights via the editor (bug).
(This post was last modified: 08-27-2013, 06:22 PM by plutomaniac.)
08-27-2013, 06:21 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#16
RE: Updating script support, taking requests

Keyboard and mouse events are already implemented in HPL3, but that'd be awesome if we can use it before then.

I also would like to be able to use the global point light and global ambient light for maps (see Level Editor), in this way i can remove huge box lights (and easily work around the clip plane issue with box lights that extend beyond 400 meters).

Ability to attach object to player.

Ability to access tinderboxes.

Access to local fog areas.

A lot of other suggestions i would have mentioned are already mentioned, but i'll edit this post if i can think of any more.

Tutorials: From Noob to Pro
(This post was last modified: 08-28-2013, 08:12 AM by Your Computer.)
08-27-2013, 09:59 PM
Website Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#17
RE: Updating script support, taking requests

I got nothing to add. Activable items, maybe. To capture its use and code something.

08-27-2013, 10:28 PM
Find
LHudson Offline
Member

Posts: 165
Threads: 9
Joined: Aug 2011
Reputation: 9
#18
RE: Updating script support, taking requests

Bit vague and not very technical, but the ability to spawn monsters and allow them to patrol without their patrolling music playing, but with the soundtrack of that room playing. For example.

10_amb is playing, but a monster spawns. 10_amb is still playing but dan_grunt doesn't.

[Image: sigpic401029_1.gif]
08-28-2013, 01:38 AM
Find
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#19
RE: Updating script support, taking requests

(08-28-2013, 01:38 AM)LHudson Wrote: Bit vague and not very technical, but the ability to spawn monsters and allow them to patrol without their patrolling music playing, but with the soundtrack of that room playing. For example.

10_amb is playing, but a monster spawns. 10_amb is still playing but dan_grunt doesn't.

I think this is already possible by making a new ent file for the monster where the ambient music is empty ("").
08-28-2013, 06:29 AM
Find
Red Offline
Posting Freak

Posts: 1,757
Threads: 49
Joined: Feb 2012
Reputation: 54
#20
RE: Updating script support, taking requests

- A function to stop enemy music instantly.
08-28-2013, 06:54 AM
Find




Users browsing this thread: 1 Guest(s)