API of the armed entities. Guided weapons

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
regedit2000
Burner Inserter
Burner Inserter
Posts: 14
Joined: Mon May 23, 2016 4:00 pm
Contact:

API of the armed entities. Guided weapons

Post by regedit2000 » Sat Dec 29, 2018 1:52 pm

TL; DR
Propose to extend the API of the armed entities guided weapons

what ?
Now weapons control is possible only for characters through "selected_gun_index", but multiple weapons are also used in transport but there is no access to it (as an option, you can use access through the driver ). An example of a mod where this can be used is AAI Programmable Vehicles. In addition to the selection of weapons, you can turn it on/ off, change the response radius and the current cell with ammunition (for turrets)

why ?
More features for modding and game control

Rseding91
Factorio Staff
Factorio Staff
Posts: 8651
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: API of the armed entities. Guided weapons

Post by Rseding91 » Thu Jan 10, 2019 2:18 am

I'm not sure exactly what you're asking for?
If you want to get ahold of me I'm almost always on Discord.

User avatar
regedit2000
Burner Inserter
Burner Inserter
Posts: 14
Joined: Mon May 23, 2016 4:00 pm
Contact:

Re: API of the armed entities. Guided weapons

Post by regedit2000 » Fri Jan 11, 2019 9:55 pm

I want through the API:
- manage weapons transport (choose from several active for the character).
- choose the ammo for the gun turrets.
- control the guns themselves (turn on/off, change the range and strength of the shot (for lasers)).

Application:
- scenarios
- mods mentioned above.

Why: single / universal management of similar entity capabilities.

Additionally:
- Passengers-number, control (roles: driver/shooter/cargo), access to weapons transport, the ability to use their own guns from the inside
Last edited by regedit2000 on Sat Jan 12, 2019 12:32 am, edited 1 time in total.

Rseding91
Factorio Staff
Factorio Staff
Posts: 8651
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: API of the armed entities. Guided weapons

Post by Rseding91 » Fri Jan 11, 2019 10:34 pm

regedit2000 wrote:- manage weapons transport (choose from several active for the character).
I still don't understand. There is no such thing as "weapons transport" in Factorio. Maybe there's a translation issue here.
regedit2000 wrote:- choose the ammo for the gun turrets.
You can already do that by just putting different ammo in the gun turrets.
regedit2000 wrote:- control the guns themselves (turn on/off, change the range and strength of the shot (for lasers)).
You can already do that by setting entity.active = true/false and adjusting the technology modifiers for the given lasers.

Turret/gun range can't be adjusted runtime and never will be. There's a massive amount of game logic which assumes it never changes and is built on it never changing once the game is loaded.
If you want to get ahold of me I'm almost always on Discord.

User avatar
regedit2000
Burner Inserter
Burner Inserter
Posts: 14
Joined: Mon May 23, 2016 4:00 pm
Contact:

Re: API of the armed entities. Guided weapons

Post by regedit2000 » Sat Jan 12, 2019 12:30 am

============================================================================
Rseding91 wrote:
Fri Jan 11, 2019 10:34 pm
I still don't understand. There is no such thing as "weapons transport" in Factorio. Maybe there's a translation issue here.
vehichle
weapon.png
weapon.png (521.54 KiB) Viewed 88 times
============================================================================
Rseding91 wrote:
Fri Jan 11, 2019 10:34 pm
You can already do that by just putting different ammo in the gun turrets.
clip.png
clip.png (114.26 KiB) Viewed 88 times
============================================================================
Rseding91 wrote:
Fri Jan 11, 2019 10:34 pm
You can already do that by setting entity.active = true/false and adjusting the technology modifiers for the given lasers.

Turret/gun range can't be adjusted runtime and never will be. There's a massive amount of game logic which assumes it never changes and is built on it never changing once the game is loaded.
OK. I understood

Post Reply

Return to “Modding interface requests”

Who is online

Users browsing this forum: No registered users and 2 guests