View unanswered posts | View active topics It is currently Fri Dec 27, 2024 9:01 am



Reply to topic  [ 8 posts ] 
 Lua File Request 
Author Message
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Lua File Request
Hello

i am in need of a Lua file that when the desired gun shoots (1 shot), it slows down time for about 30 seconds... i want the time slowed down to about a quarter of the normal speed. Maybe even a Motion Blur if thats possible too..

Thx


Sun Feb 28, 2010 6:48 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Lua File Request
Make an invisible particle that lasts as long as you want the effect to.
Give it this script.
Code:
function Create(self)
TimerMan.TimeScale = 1/<Makes time this much slower>
function Destroy(Self)
TimerMan.TimeScale = 1

Fire it from a gun.


Sun Feb 28, 2010 7:16 am
Profile WWW
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Lua File Request
I have absolutly NO knowledge about Lua... if you could make the introduction into the script and all that, that would be prime... ive already got the MOPixel that has the script, just need a working script


thx tho


Sun Feb 28, 2010 7:36 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: Lua File Request
That... Is the script. :-P

*EDIT*
For the exception of an "end".


Sun Feb 28, 2010 7:37 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Lua File Request
any tabs included?


Sun Feb 28, 2010 7:39 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: Lua File Request
Tabs just make it look pretty. You can make it look like this just for the sake of organization:
Code:
function Create(self)
[tab]TimerMan.TimeScale = 1/<Makes time this much slower>
[tab]function Destroy(Self)
[tab]TimerMan.TimeScale = 1
end


Replace [tab] with an actual tab.


Sun Feb 28, 2010 7:48 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Lua File Request
Missing an end.

Code:
function Create(self)
   TimerMan.TimeScale = 0.5 --(Half the speed of normal, set it to whatever you want.)
end
function Destroy(Self)
   TimerMan.TimeScale = 1
end

(scripts don't need tabs or spaces, it just helps everything make sense when you're making the code.)


Sun Feb 28, 2010 8:03 am
Profile WWW
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Lua File Request
PERFECT!!!! :grin:

thx guys.. be releasing something small but hopefully epic soon

EDIT: just remembered something thats important... in any way can you keep the fire sound not be effected by the timescale? And please Any kind of motion blur and this would be a fantastic mod


Sun Feb 28, 2010 8:07 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.053s | 13 Queries | GZIP : Off ]