Nuclear Beetles

Interesting mapping tools and mapping help.

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: 92
Joined: 02 Oct 2016, 20:26
Has liked: 15 times
Been liked: 3 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.
I made the terrible mistake of voting for Tokyto_
User avatar
Exotic_Retard
Moderator
 
Posts: 1313
Joined: 21 Mar 2013, 22:51
Has liked: 523 times
Been liked: 549 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: 92
Joined: 02 Oct 2016, 20:26
Has liked: 15 times
Been liked: 3 times
FAF User Name: EntropyWins


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest