Hi all. I have been wondering how to continue with my body script. I considered refining it and releasing on the Gamestore, but have decided to release it into the wild for free. All I ask is if people use it, some credit would be nice and also any refinements made to be released in this thread for others, including myself
I had a little help with this script from a friend who doesn't really frequent these forums. He is better at 3D maths than me and helped refine a couple of issues I had. So, in case he ever does have a look here, thanks!
In case you have no idea what this does, here is the video I made.
I have made it as easy as I can to implement. You will need to make a new character for this.
Copy the Combat Soldier files into a new directory within your entitybank folder. I normally use the users folder to add custom media, but it is up to yourselves where you put it.
With that done, copy over it's FPE with the one provided. The FPE contains the anim and collision data needed for the script and entity to work. It also automatically adds the script to the object, making it really easy to use in the editor.
Delete the current .dbo and .bin for your combat soldier copy.
Copy the body.lua script into the scriptbank folder.
Fire up Reloaded.
Add your new combat soldier model to the scene.
Add your player marker.
Test the game.
That's it! It doesn't matter where you place the body/combat soldier. The script automatically places it in the correct position for you. Issues I have noticed are that it can have trouble with different FPS rates. Possibly because Reloaded is taking certain variables to be a speed rather than an absolute. I have not investigated this as yet, but am sure it can be fixed. I have had the issue with other scripts in the past as well, so imagine it to be the same issue.
There's all sorts of stuff this script can be used for besides this. Want to have a jetpack? This script could easily be adapted to suit the new commands and give you a body to boot! Can't be bad
So, there you go. Consider it my early Christmas present for everyone. You could of course go visit my Youtube channel and subscribe, maybe catch a few vids now and then
to show your appreciation
Of course it is not mandatory. Being fellow creators perhaps you would find something of interest on there
Let me know what you get up here, and of course upload your modified, improved scripts that you derive from this (I'm sure there will be many)
It all helps the non scriptwriters get into the games making process!
https://www.youtube.com/user/RetroGamebloke
Edit - I add that the code has some useless stuff in there still. I have not cleaned it up beyond removing a few remmed lines
Feel free to remove some of it.
SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.