Adrianis 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 620 
	Threads: 6 
	Joined: Feb 2012
	
 Reputation: 
27
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		WALP 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,221 
	Threads: 34 
	Joined: Aug 2012
	
 Reputation: 
45
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		The chaser 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,486 
	Threads: 76 
	Joined: Jun 2012
	
 Reputation: 
113
		
	 | 
	
		
			
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) 
 
Aculy iz dolan.  
			
		 |  
	 
 | 
 
	| 08-27-2013, 05:04 PM  | 
	
		
	 | 
 
 
	
		
		stonecutter 
 
 
		
			Member 
			
			
			
 
			
	Posts: 140 
	Threads: 17 
	Joined: Feb 2011
	
 Reputation: 
4
		
	 | 
	
		
			
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 !
			  
			
			
 
			
		 |  
	 
 | 
 
	| 08-27-2013, 06:16 PM  | 
	
		
	 | 
 
 
	
		
		plutomaniac 
 
 
		
			Super Moderator 
			
			
			
 
			
	Posts: 6,368 
	Threads: 45 
	Joined: May 2011
	
 Reputation: 
183
		
	 | 
	
		
			
RE: Updating script support, taking requests 
			 
			
				 (08-27-2013, 03:20 PM)Apjjm Wrote:  Input 
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  | 
	
		
	 | 
 
 
	
		
		Your Computer 
 
 
		
			SCAN ME! 
			
			
			
 
			
	Posts: 3,456 
	Threads: 32 
	Joined: Jul 2011
	
 Reputation: 
235
		
	 | 
	
		
			
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.
			 
			
			
 
			
				
(This post was last modified: 08-28-2013, 08:12 AM by Your Computer.)
 
				
			 
		 |  
	 
 | 
 
	| 08-27-2013, 09:59 PM  | 
	
		
	 | 
 
 
	
		
		Daemian 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,129 
	Threads: 42 
	Joined: Dec 2012
	
 Reputation: 
49
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		LHudson 
 
 
		
			Member 
			
			
			
 
			
	Posts: 165 
	Threads: 9 
	Joined: Aug 2011
	
 Reputation: 
9
		
	 | 
	
		
			
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.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 08-28-2013, 01:38 AM  | 
	
		
	 | 
 
 
	
		
		Thomas 
 
 
		
			Frictional Games 
			
			
			
 
			
	Posts: 2,634 
	Threads: 184 
	Joined: Apr 2006
	
 Reputation: 
68
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		Red 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,757 
	Threads: 49 
	Joined: Feb 2012
	
 Reputation: 
54
		
	 | 
	
		
			
RE: Updating script support, taking requests 
			 
			
				- A function to stop enemy music instantly.
			 
			
			
			
		 |  
	 
 | 
 
	| 08-28-2013, 06:54 AM  | 
	
		
	 | 
 
 
	 
 |