Ok lets talk basics then :
1] Install the Killing Floor SDK. This will add lots of files including the folder KFMod, which can be very handy at times.
2] Make a dir on your e.g. desktop with the name of your gun.
3] Make 3 folders in that folder
Media
Release
Source
In Media youll put all the 3ds max files and other workfiles. In release youll copy the working files for the clients, and in source we will do the coding.
4] Install 3ds max
5] Install Unreal Actor X for 3ds Max
6] Install an import program/script in 3ds max to import your unreal gun. Like :
http://www.gildor.org/projects/unactorx With this program you can import psa/psk's
7] Extract the psa / psk's from your unreal gun (no idea how to do that, I either start from scratch or use one of my modding resources to extract the files from the engine)
8] Right, now open the 9mm : C:\Program Files (x86)\Steam\steamapps\common\killingfloor\Rigs\Weapons\Dual_9mm in 3ds max.
7] Replace the 9mm with your gun and start creating all the animations. Save them in your folder called "media"
8] Export the standard version of the gun with the hands as a psk with Actor X
9] Now export all the individual animations in 1 psa with Actor X. Use the sdk to see the references to the animations and the names. Dont forget to click "all textured" since the guns dont work with bones.
10] After creating the psa and psk we enter the domain of the SDK. Import the animations(psa) and mesh (psk) and start creating a animations package. Its really hardcore stuff so I suggest tutorials tutorials tutorials tutorials
11] The coding is actually the easy part. Just make sure you have the folder "Classes" in your "Source" folder with all the .uc files.
Create a .bat file within your source folder with the following :
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@echo off
set PkgName=MutNameOfGun
set KFPath=C:\Program Files (x86)\Steam\steamapps\common\killingfloor\
:: Remove any existing scripts from the package directory
del "%KFPath%%PkgName%\*.uc" /S /Q
:: Remove compiled package file (.u)
if exist "%KFPath%System\%PkgName%.u" del "%KFPath%System\%PkgName%.u" /Q
:: Copy scripts to package directory
XCOPY "Classes\*.uc" "%KFPath%%PkgName%\Classes" /D /E /C /R /I /K /Y
:: Compile
"%KFPath%System\UCC.exe" make
if errorlevel 1 goto FailedCompile
:: Delete steam_appid file (file causes networking problems)
if exist "%KFPath%System\steam_appid.txt" del "%KFPath%System\steam_appid.txt" /Q
:: Compile complete, exit batch file
ECHO
exit
:: Compile failed, let user see error before exiting
:FailedCompile
pause
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Make sure you have a .uc file with the mutator in the "Classes" folder with the following code :
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
class MutNameOfGun extends Mutator;
function ModifyPlayer(Pawn Player)
{
Super.ModifyPlayer(Player);
Player.GiveWeapon("MutNameOfGun.NameOfGun);
}
defaultproperties
{
GroupName="KF-NameOfGun"
bAddToServerPackages=True
FriendlyName="NameOfGun Mutator"
Description="Adds the NameOfGun."
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Compile and correct the errors youll prob get.
This is the short version...In reality it takes allot of time if you never done this before. But once you did it, youll be pooping guns before you know it. lol
Hope this help!
----------------