Open Lemorz56 opened 3 years ago
Hey! First of all, you have to get yourself an SDK. I think it came included in Stetchkov (alternatively you can use the very first commit here). Then you have to set up 3 batch files, one for launching the game, one for compiling with UCC and one for verifying (for MP). Again, feel free to use my files edited for your paths. Then you can go ahead and start modding. The files you are interested in are .uc. It's C++, and the files are editable with any text editor, from Notepad to Eclipse. I use Notepad++ with custom color theme. The Source files are split into two major folders, Engine which contains barebone Unreal 2 and Game, which is SWAT-specific. As for how did I find what I needed - I simply looked through the code long enough, searching for keywords, looking through classes and reading comments. I found no documentation of any sort. Then there was a lot of trial-and-error. Important thing - user input, equipment stats, animations (incl. speed multipliers) and a lot of other stuff is sourced from .ini files in the System directory, not the Source dir. Took me a while to figure it out :)
Hope I helped. Happy modding!
@SirMordrag Thank you so so much! This is the most help I've recieved yet. It will help me tremendously. Are you active in any modding forum or discord so there is a way to reach out to you? If you'd be okay with me asking more questions of course.
Hey, I'm super glad I could help. You can reach me the easiest on Reddit under u/SirMordrag, feel free to message me. I'm not completely sure how much I can help, but I'm sure gonna try. Also, I'm quite open to collaboration
Hi! Im quite new to modding Swat 4 and have no idea where to start. Been looking on ModDB and documents but i have no idea how to mod swat 4 with scripting. I've found tutorials for Models and such but im interested in scripting. How did you manage to find all names for objects like "local SwatGamePlayerController"?
What are you using to write the scripts? Any Editor?
Thanks.