Disable FPS control

Disable FPS control

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Disable FPS control

Post 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?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Disable FPS control

Post 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?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Disable FPS control

Post by knorke »

can this command be intercepted via a gadget?
BA has no_unit_direct_controll.lua (or similiar named)
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Disable FPS control

Post by Anarchid »

ZK does that for a lot of units. Usually, antiair, artillery, such stuff. WIth a gadget.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Disable FPS control

Post by Forboding Angel »

unit_direct_control.lua

That's the ticket. Thanks :-)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Disable FPS control

Post by smoth »

problem solved?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Disable FPS control

Post 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.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Disable FPS control

Post 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
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Disable FPS control

Post 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
unit_no_fps.lua
(355 Bytes) Downloaded 18 times
Last edited by Forboding Angel on 11 Feb 2012, 01:41, edited 1 time in total.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Disable FPS control

Post by jK »

o_O

better use that
http://pastebin.com/zErBUJzf
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Disable FPS control

Post by Forboding Angel »

Undocumented call is undocumented?
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Disable FPS control

Post 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.
Post Reply

Return to “Feature Requests”