View topic - Disable FPS control



All times are UTC + 1 hour


Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Disable FPS control
PostPosted: 09 Feb 2012, 18:51 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Pretty soon toairweapon will go the way of the dodo and jackasses will be able to fps AA weapons to kill anything which will cause much angst.

Can we have an engine option that disallows the use of fps mode alltogether?


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 09 Feb 2012, 19:18 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: ModalitÃ
There was/is a tag to disable the fps mode on a per unit basis.

if that doesn't exist or got dropped inbetween releases, can this command be intercepted via a gadget?


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 09 Feb 2012, 19:24 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
Quote:
can this command be intercepted via a gadget?
BA has no_unit_direct_controll.lua (or similiar named)


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 09 Feb 2012, 19:24 
User avatar

Joined: 30 Nov 2008, 04:31
Location: the flow
ZK does that for a lot of units. Usually, antiair, artillery, such stuff. WIth a gadget.


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 09 Feb 2012, 23:29 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
unit_direct_control.lua

That's the ticket. Thanks :-)


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 09 Feb 2012, 23:32 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: ModalitÃ
problem solved?


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 10 Feb 2012, 01:51 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
More or less. I would prefer a gadget that disables all fps control, whereas this filters by unitdef. I read it over and I think i could alter it pretty easily, but I dunno if I'll mess with it just now. Beating my head against a lua wall trying to figure it out for the next 5 hours doesn't sound like a very fun way to spend my night.


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 10 Feb 2012, 02:24 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
Forboding Angel wrote:
More or less. I would prefer a gadget that disables all fps control, whereas this filters by unitdef. I read it over and I think i could alter it pretty easily, but I dunno if I'll mess with it just now. Beating my head against a lua wall trying to figure it out for the next 5 hours doesn't sound like a very fun way to spend my night.
I fixed it so that it now always blocks fps controll of all units without exceptions:
http://pastebin.com/QEQ8dNYA


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 10 Feb 2012, 03:21 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Oi, thanks knorke. Nice to have that little safety blanket. Also nice to know that I don't have to dig into the other gadget trying to figure it out. Attaching luaz for copy pasta goodness.

Updated file to JK goodness

Attachment:
unit_no_fps.lua [355 Bytes]
Downloaded 12 times


Last edited by Forboding Angel on 11 Feb 2012, 01:41, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 10 Feb 2012, 12:39 
Spring Developer
User avatar

Joined: 28 Jun 2007, 06:30
o_O

better use that
http://pastebin.com/zErBUJzf


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 11 Feb 2012, 01:39 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Undocumented call is undocumented?


Top
 Offline Profile  
 
 Post subject: Re: Disable FPS control
PostPosted: 11 Feb 2012, 05:45 
Moderator

Joined: 12 Oct 2007, 08:24
It is as well documented as any other call. By that I mean browse callInLists in gadgets.lua for good looking names and then search other gadgets if you need further ideas.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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® Forum Software © phpBB Group

Site layout created by Roflcopter et al.