Disable FPS control
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Disable FPS control
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?
Can we have an engine option that disallows the use of fps mode alltogether?
Re: Disable FPS control
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?
if that doesn't exist or got dropped inbetween releases, can this command be intercepted via a gadget?
Re: Disable FPS control
BA has no_unit_direct_controll.lua (or similiar named)can this command be intercepted via a gadget?
Re: Disable FPS control
ZK does that for a lot of units. Usually, antiair, artillery, such stuff. WIth a gadget.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Disable FPS control
unit_direct_control.lua
That's the ticket. Thanks
That's the ticket. Thanks
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Disable FPS control
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
I fixed it so that it now always blocks fps controll of all units without exceptions: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.
http://pastebin.com/QEQ8dNYA
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Disable FPS control
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
Updated file to JK goodness
Last edited by Forboding Angel on 11 Feb 2012, 01:41, edited 1 time in total.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Disable FPS control
Undocumented call is undocumented?
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Disable FPS control
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.