Product Chat / Melee Script

Author
Message
slender1200
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 4th Jul 2015
Location: home
Posted: 1st Sep 2016 17:21
Hello everyone. I watched one of the Gameguru streams the other day, and I noticed that in the fantasy pack, there is a script that allows enemy's to have melee weapons. So I am wondering if there is any script like that, because I do not want to buy an entire pack for one script.

Here is the video I am talking about:
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 1st Sep 2016 17:31
Pretty sure the scripts are specific for those characters, but they SHOULD be included by default for the Medieval ones, so you can work from those. I based my RPG and Modern RPG scripts on those. You need to change the animations for any custom models you may be using.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Sep 2016 17:34
yh they are just based on animation like the zombie scripts
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 2nd Sep 2016 12:46 Edited at: 2nd Sep 2016 12:59
As smallg and DVader said, melee scripts are slightly different to soldier ai, instead of using the CSI animation range and issuing a single command for attacks, the script usually stores the animation range in 4 variables, which you can clearly see in the ai_zombiewalk.lua scripts:



These numbers are usually written into the script itself, most of the time as a variable in the init of the script, although sometimes it's in the first part of the main section, then called using the play animation commands etc in the attack portion of the script.



So if you want to use a different character with a different animation set you need to create a copy of the script and edit the variables in the first code snippet to match your animations (you may have to search for those variables because they may not be named the same in some scripts).

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.

Login to post a reply

Server time is: 2024-11-24 22:40:24
Your offset time is: 2024-11-24 22:40:24