Scripts / [SOLVED] SmallG´s "Cut Zombies in half" - script

Author
Message
SkyWolf_89
3
Years of Service
User Offline
Joined: 15th Nov 2020
Location: Germany
Posted: 16th Dec 2020 16:20
Hi everyone,

how do I set the "cut zombies in half" - script by smallg?

When I´ve tried, the zombie get stuck at its place and nothing happened.

I´ve set the main zombie to "cutfools.lua", the upper body part to "cutfoolstorso.lua" and the legs to "cutfoolslegs.lua". Then I set the bodyparts to non-static. The zombie and the parts are close to each other.

Could you help me, please?

The author of this post has marked a post as an answer.

Go to answer
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Dec 2020 17:01 Edited at: 16th Dec 2020 17:05
This post has been marked by the post author as the answer.
they're not meant to do anything really, it was just an example script - i just tried it and surprisingly it does still work though
but yes, they will just stand there and nothing happens until you kill them
make sure your weapon ID matches what is set in the script (or just change it in chopping_fools.lua to
--for other weapons change or add the number here
if g_PlayerGunID > 0 then

it would be a cool idea to explore more in GG though, perhaps i will look for / make some suitable models to make a better version
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
SkyWolf_89
3
Years of Service
User Offline
Joined: 15th Nov 2020
Location: Germany
Posted: 18th Dec 2020 15:16
Thank you for your answer, smallg

Now it works, I´ve set the shotgun and the sword to chopping them zombies.
But how did you set the blood decal script to combine the chopping and the blood spread?

And personally, how long do you script in .lua now?
You are one of the most talented and creative heads here in this forum.

I wanna learn lua-scripting now, too. The options you will get with scripting are awsome.

Thanks again for answering.

Sorry for my grammar, I speak german the most time

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 18th Dec 2020 17:03
try adding
ai_bot_state[e] = "idle"
in the init(e) function of the chopping_fools.lua script - that should make it work with the blood spread decals script

i've been here a few years now, my profile lies because i originally joined TGC many years ago to try darkbasic classic but never really got into it - came back when "reloaded" was first released so i've been here however long ago that was (looks like it was around 2013) - it probably won't take you that long to learn lua though, a lot has changed and improved in GG in those years
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
SkyWolf_89
3
Years of Service
User Offline
Joined: 15th Nov 2020
Location: Germany
Posted: 19th Dec 2020 19:51 Edited at: 20th Dec 2020 17:49
Smallg, I´ve tried to add ai_bot_state[e] = "idle", but there is no function.
Could you show me in code, how you meant it, please?

When I got more time, I will try to learn lua myself

Edit:
It works, thanks Smallg. I just forgot the ";"

Login to post a reply

Server time is: 2024-05-02 01:08:10
Your offset time is: 2024-05-02 01:08:10