Page 1 of 1
Disable FPS control
Posted: 09 Feb 2012, 18:51
by Forboding Angel
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?
Re: Disable FPS control
Posted: 09 Feb 2012, 19:18
by smoth
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?
Re: Disable FPS control
Posted: 09 Feb 2012, 19:24
by knorke
can this command be intercepted via a gadget?
BA has no_unit_direct_controll.lua (or similiar named)
Re: Disable FPS control
Posted: 09 Feb 2012, 19:24
by Anarchid
ZK does that for a lot of units. Usually, antiair, artillery, such stuff. WIth a gadget.
Re: Disable FPS control
Posted: 09 Feb 2012, 23:29
by Forboding Angel
unit_direct_control.lua
That's the ticket. Thanks

Re: Disable FPS control
Posted: 09 Feb 2012, 23:32
by smoth
problem solved?
Re: Disable FPS control
Posted: 10 Feb 2012, 01:51
by Forboding Angel
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.
Re: Disable FPS control
Posted: 10 Feb 2012, 02:24
by knorke
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
Re: Disable FPS control
Posted: 10 Feb 2012, 03:21
by Forboding Angel
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
Re: Disable FPS control
Posted: 10 Feb 2012, 12:39
by jK
Re: Disable FPS control
Posted: 11 Feb 2012, 01:39
by Forboding Angel
Undocumented call is undocumented?
Re: Disable FPS control
Posted: 11 Feb 2012, 05:45
by Google_Frog
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.