Nuclear Beetles

Interesting mapping tools and mapping help.

Moderator: Morax

Nuclear Beetles

Postby EntropyWins » 24 Jan 2018, 00:09

I'd like to add some fun nuclear beetles on my survival map :)

I know how to create a beetle

Code: Select all
local beetle = CreateUnitHPR(
   "xrl0302",
   "ARMY_9",
   255,
   25.9844,
   255,
   0, 0, 0
)


I know how to make it stronger and slower

Code: Select all
beetle:SetMaxHealth(beetle:GetMaxHealth() * 10)
beetle:SetHealth(beetle, beetle:GetMaxHealth())
beetle:SetSpeedMult(0.42)


What I do not know is how to make set it's death weapon to be a nuke. I found `beetle.OnKilled` which allows me to do something when the beetle died, though I do not know how to create a nuclear explosion (without doing something silly like spawning a para and killing it) and the old death weapon is still there anyway.

I'd also like the beetle to be scaled up a little bit, though this is not as important. I tried using `beetle:SetDrawScale`, though did not see this function have any effect.
EntropyWins
Avatar-of-War
 
Posts: 113
Joined: 02 Oct 2016, 20:26
Has liked: 18 times
Been liked: 4 times
FAF User Name: EntropyWins

Re: Nuclear Beetles

Postby Exotic_Retard » 24 Jan 2018, 03:02

just check out "Tokytos Balanced Beetle V8" mod for all your beetle needs.
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: Nuclear Beetles

Postby EntropyWins » 15 Apr 2018, 18:37

I looked at this for about two hours but got nowhere. Any further pointers?
EntropyWins
Avatar-of-War
 
Posts: 113
Joined: 02 Oct 2016, 20:26
Has liked: 18 times
Been liked: 4 times
FAF User Name: EntropyWins

Re: Nuclear Beetles

Postby DDDX » 26 Apr 2018, 19:19

hi man. For size you want this value
UniformScale = x.xxx,

However changing it makes the other values off, namely the skirt sizes, offsets, footprint sizes, selection sizes, and most importantly size x,y and z - those control the virtual size of the unit for weapon collision purposes.
You would think that uniformscale would uniformly boost all those up-but nope...it only handles the visual aspect.

As for the death weapon, you should have no problem copying the death nuke from Paragon, or Goliath (Blackops Unleashed). Just import what needs importing in the unit's script file.

I made 2 types of xxl beetles in my mod, with a death weapon - not a nuke however, but still a loud and graphic bang :)
As well as several more supersized boss-type units.
Check them out. The mod's name is Survival Mayhem&BO balance (version 30+, there's an obsolete version too, ignore that)
Check out my 2 maps: "Survival_Mayhem&BO_3d_v1" "Survival_Mayhem&BO_3d_RPG"
as well as my mod: "Survival Mayhem&BO balance"
-- let me know of any bugs or issues regarding those 3.
DDDX
Avatar-of-War
 
Posts: 170
Joined: 21 Mar 2016, 16:13
Has liked: 18 times
Been liked: 16 times
FAF User Name: DDDX

Re: Nuclear Beetles

Postby EntropyWins » 01 May 2018, 14:24

Thanks for the pointer DDDX!

Unfortunately I can't use unit files for my usecase, since it is a survival map, and not a mod. Any idea if I can set the needed info on a beetle after creating it, or somehow create a beetle from blueprint info stored in lua?
EntropyWins
Avatar-of-War
 
Posts: 113
Joined: 02 Oct 2016, 20:26
Has liked: 18 times
Been liked: 4 times
FAF User Name: EntropyWins


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest