Mod: SlowMotion UI

Post Reply
maxx12230
Posts: 20
Joined: Sat Aug 20, 2011 12:36 am

Mod: SlowMotion UI

Post by maxx12230 » Fri Sep 16, 2011 10:48 pm

Hey guys(this is DevCraze from the IRC)

I have been working on a little mod for different levels of slowmotion and have made some decent progress.

Here is an example:
Image

As of now though, I am actually having to halt this mod due to it being not possible with the angelscript system as it is, but hopefully in the future it will be usable. I just wanted to create a thread for it and label it as in progress/halted.

The GUI side of it is halted, however, if you guys want I can release a mod that uses a key to turn the old slowmotion on and off.

thanks,
DevCraze

AndreDinisCTU
Posts: 71
Joined: Wed Aug 17, 2011 7:29 pm
Location: Irea

Re: Mod: SlowMotion UI

Post by AndreDinisCTU » Sat Sep 17, 2011 7:21 pm

Nice... looking forward for your mod. Looks interesting.

tonicer
Posts: 23
Joined: Wed Nov 24, 2010 11:36 am

Re: Mod: SlowMotion UI

Post by tonicer » Sat Sep 17, 2011 8:01 pm

Awesome idea ... i really miss the old slowmotion ... it added some EPIC combat feeling to the fights.

User avatar
learn_more
Posts: 158
Joined: Tue Mar 15, 2011 6:32 am

Re: Mod: SlowMotion UI

Post by learn_more » Sun Sep 18, 2011 5:45 am

what is the problem with the UI?

maxx12230
Posts: 20
Joined: Sat Aug 20, 2011 12:36 am

Re: Mod: SlowMotion UI

Post by maxx12230 » Sun Sep 18, 2011 3:45 pm

The UI is fine, it is the fact that angelscript currently has no way to communicate between its scripts that causes the issue.

User avatar
learn_more
Posts: 158
Joined: Tue Mar 15, 2011 6:32 am

Re: Mod: SlowMotion UI

Post by learn_more » Mon Sep 19, 2011 12:53 am

what info do you need to transmit between which files?

maxx12230
Posts: 20
Joined: Sat Aug 20, 2011 12:36 am

Re: Mod: SlowMotion UI

Post by maxx12230 » Mon Sep 19, 2011 1:56 am

I need to be able to transfer the data about which radio button is clicked to the Aschar.as file from the level.as file. it isn't possible right now(I talked to david, it isn't possible AT ALL) and you can't use any gui functions from within the aschar file.

David
Project Leader
Posts: 1995
Joined: Wed Nov 19, 2003 10:45 pm
Contact:

Re: Mod: SlowMotion UI

Post by David » Sat Oct 01, 2011 3:03 pm

I just remembered something -- you can use "QueryLevelIntFunction" to get the result of an int function in level.as from within aschar.as. For example, it uses "QueryLevelIntFunction("int HasFocus()")==0)" to determine if the player camera should respond to mouse movement, or if level.as is using it for the GUI. This should make it possible for the players to query the state of the slow motion UI also.

maxx12230
Posts: 20
Joined: Sat Aug 20, 2011 12:36 am

Re: Mod: SlowMotion UI

Post by maxx12230 » Mon Oct 03, 2011 7:34 pm

David wrote:I just remembered something -- you can use "QueryLevelIntFunction" to get the result of an int function in level.as from within aschar.as. For example, it uses "QueryLevelIntFunction("int HasFocus()")==0)" to determine if the player camera should respond to mouse movement, or if level.as is using it for the GUI. This should make it possible for the players to query the state of the slow motion UI also.
A most excellent tidbit of information! I appreciate you taking the time to point this out! I am looking forward to easier forms of communication between scripts! :)

User avatar
last
Posts: 2154
Joined: Fri Jan 07, 2011 7:02 am
Location: Estonia

Re: Mod: SlowMotion UI

Post by last » Fri Oct 21, 2011 3:57 am

It is easy i have done it with my latest blood mod / no death mod
I had to make some new lines ito those files:
gamemenu.html
level.as
and aschar.as

Post Reply