Page 1 of 1

Player Ammo Damage and Gun Speed Modifier

Posted: Fri May 24, 2019 12:12 pm
by ownlyme
I'm making an RPG mod and want to adjust the player's damage and attackspeed based on equipment, but those modifiers are only available on forces.
There are 4 workarounds, with terrible side effects:
- Making ~2500 prototypes per weapon (increases the game's loading time a ton)
- 50 Prototypes per weapon for the attackspeed, along with damage detection for the damage modifier (very script intensive)
- Give each player their own force (terrible mod compatibility) AND can't blueprint other forces' buildings
- A seperate Ammo category for every player (copying guns & ammo) (Huge issues with towers)

It would be really nice if you could add these modifiers to LuaPlayer (adding on top of the force modifier), i suggest turrets not profitting from them. (!!)
Ty

Edit: It should also be fixed that players loose their modifiers on death...

Re: Player Ammo Damage and Gun Speed Modifier

Posted: Tue May 28, 2019 10:51 am
by ownlyme
look what you made me do..
https://www.dropbox.com/s/6v3hyp4917k1a ... .zip?raw=1
Any sane programmer would have to puke from the intrusiveness of this code and incompatibility with literally anything else.

Re: Player Ammo Damage and Gun Speed Modifier

Posted: Tue May 28, 2019 1:31 pm
by ZwerOxotnik
I have an imitation of player ammo damage for "Adrenaline" mod. But the imitation spreads also on turrets, units etc and the buff works only when there is only one online player in team.

Gun speed modifier and player ammo damage will be useful for RPG mods. For example:
RPG System, Roguelike Factorio, 角色扮演 - 属性(Role Play - Attributes) etc

Re: Player Ammo Damage and Gun Speed Modifier

Posted: Thu May 30, 2019 7:34 pm
by FerrariMAF
We really need a character_ranged_damage_bonus and character_melee_damage_bonus

Re: Player Ammo Damage and Gun Speed Modifier

Posted: Mon Jun 17, 2019 9:03 pm
by mmmPI
ownlyme wrote: Fri May 24, 2019 12:12 pm Edit: It should also be fixed that players loose their modifiers on death...
This would help when you play with much lower than speed 1 megabases or potato, and you have to use command to adjust mining speed, running speed, everytime you die.

Re: Player Ammo Damage and Gun Speed Modifier

Posted: Wed Jun 19, 2019 1:28 pm
by ownlyme
Maybe we could create different characters for every player and use turret modifier for character-x ...
Not sure how many mods rely on the character being called character...