Scripts / Body Script

Author
Message
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Jul 2018 21:30
So what do I do when I find a great idea by someone else (in this case DVader - not my father)?

Well I sort of rewrite it a bit.

This script when added to a character lends that characters body to the player, see this video to see what I mean:



Now this is GG so obviously nothing is quite that simple, in this case you need to edit the .fpe file for the character (I simply knocked up a character in the character creator thingy) so that the anims match the following:

animmax = 4
anim0 = 3000,3100 ; idle
anim1 = 3870,3900 ; walk
anim3 = 3905,3925 ; run

The frames obviously need to match the character, in the example they match those for any character creator made one.


Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st Jul 2018 00:00
nice job, did he used to be a magician? sure doing some great sleight of hand making that gun disappear and reappear
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
software_bundle
6
Years of Service
User Offline
Joined: 30th Jun 2018
Location:
Posted: 21st Jul 2018 08:45
Very nice Thank you
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 21st Jul 2018 10:46
Thanks should really go to DVader who originally provided the script. I just revamped it a wee bit.

Been there, done that, got all the T-Shirts!
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 21st Jul 2018 12:18
Nice one! Will take a look at this a bit later. Out to do some mowing now.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 21st Jul 2018 13:31
This could probably be expanded on, for example detect if the player is armed or not and choose the appropriate animation, add crouch and jump etc.

You do have to choose the camera point carefully for different character types, for example some of the zombies are naturally leaning forward so the camera ends up in the top of their skulls which is rather disconcerting!

Been there, done that, got all the T-Shirts!
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 21st Jul 2018 23:48
Hmn i'm wondering if you can control the animations externally on that, for example if you made a model with a "fiddle" animation, could you set up a script in an object that would play the fiddle animation on your body when you click the object?
[img]belidos3d.swgrp.co.uk/wp-content/uploads/2016/03/blogo.png[/img]
Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 22nd Jul 2018 09:26
Nice!! good work
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 22nd Jul 2018 20:32 Edited at: 23rd Jul 2018 00:11
Didn't work with my old soldier character(180 degrees out), but ran okay as soon as I made a new CC character. I had to alter the view distance down a little to stop some of the object looking see-thru. Works as it did before now by the looks, although the real-time shadow doesn't look as sharp now as it did, but I'm sure we can live with that Nice conversion.

Your right though, I hardly recognise it now, lol. Tried adding a straffe anim but not had much success so far. My old method of checking your position is less needed now, but will have to spend some time with it.

@ Belidos.
Quote: "for example if you made a model with a "fiddle" animation, could you set up a script in an object that would play the fiddle animation on your body when you click the object?"


Can't see why not. It would have to override the body's anim's or simply lock you in place while it runs. Just need the anim to do it really The main issue with the body script is it falls down when you have a gun and hence 4 arms, although I'm not sure if you can see the shadow of them, just the arms lol.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 28th Aug 2018 21:10
awesome work! Would you do it for armed characters too ?

Login to post a reply

Server time is: 2024-12-22 19:25:58
Your offset time is: 2024-12-22 19:25:58