Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move turret monattacks to a json actor #15370

Merged
merged 4 commits into from Feb 13, 2016

Conversation

Projects
None yet
4 participants
@Coolthulhu
Copy link
Contributor

commented Feb 13, 2016

Currently only SMG and antimateriel turrets are converted to the json versions, because assault rifle and frag 'nade functions are used by tankbot and chicken walker. I don't have a good way of invoking jsonized actors from other actors.

Allows setting gun type, ammo type, targeting range, stats and skills for the fake NPC, move cost, laser locking (true/false) and moves wasted on targeting.

Changed antimateriel turret a tiny bit: allowed it to target player at 20 (was 18), stopped it from targeting stuff at range 40 when friendly (lowered to 20, because it required special casing and wasted ammo at that range).

Also fixed a bug that affected turrets for a while: fake NPC stats weren't set up correctly, resulting in larger than expected dispersion for monster and vehicle turrets.

@Rivet-the-Zombie

This comment has been minimized.

Copy link
Member

commented Feb 13, 2016

Very nice!

{
"type" : "gun",
"cooldown" : 2,
"gun_type" : "hk_mp5",

This comment has been minimized.

Copy link
@mugling

mugling Feb 13, 2016

Contributor

This would be an ideal time to define fake_smg in item/gun/fake.json as discussed in #15227

@kevingranade kevingranade merged commit 94175ff into CleverRaven:master Feb 13, 2016

1 check passed

default
Details

@Coolthulhu Coolthulhu deleted the cataclysmbnteam:generic-turret branch Feb 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.