Writing game modes - Where to start?

Discussions about Coding and Scripting
User avatar
fuzzy
Novice
Posts: 4
Joined: Tue May 14, 2024 7:21 am
Personal rank: plomb
Location: Bunbun Village

Writing game modes - Where to start?

Post by fuzzy »

Hi,

I'm very new to UnrealScript and its API, but I am a quick learner. Where should I start for learning to make my own game mode? It's obviously not going to be an actor, since those are essentially game objects... What should I do?

Thanks,
- fuzzy
:D Join my server! :D
Image
User avatar
Barbie
Godlike
Posts: 2956
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Writing game modes - Where to start?

Post by Barbie »

I would not start with the game controller, that changes the whole game but better with a Mutator that adds or changes only small things in a game. As an example: recently I was asked for code that reduces a player's health when he injures a team mate. And his health reducement should be slightly higher than his damage to the team member.
Good luck!
---
Apart from that: coding in UScript is only one part - you have to know the object tree, what object does what and how they interact. And yes, changing the "game mode" means overwriting class'GameInfo' what is an Actor. :mrgreen:
"If Origin not in center it be not in center." --Buggie
User avatar
papercoffee
Godlike
Posts: 10531
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: Writing game modes - Where to start?

Post by papercoffee »

What Barbie said.
Weapon mutators/mods are the things most people start tinker with in UScript.
Buggie
Godlike
Posts: 3229
Joined: Sat Mar 21, 2020 5:32 am

Re: Writing game modes - Where to start?

Post by Buggie »

You can start by subclass existing mode, and change aspect of it. After few iterations it goes be completely new game mode.
Look of code in exists GameInfo classes, and try make changes in small steps.
User avatar
UTPe
Masterful
Posts: 601
Joined: Sun Jul 12, 2009 7:10 pm
Personal rank: Dude
Location: Trieste, Italy

Re: Writing game modes - Where to start?

Post by UTPe »

Hi fuzzy,
hope it can help you someway, this is a doc called "Mod Authoring for Unreal Tournament" written by Brandon Reinhart which makes part of the original documentation available for Unreal Tournament released by Epic Games in 1999. I add also two other docs about UnrealScript language.

moreover, I point out this link: https://unrealarchive.org/unrealscript/

cheers,
Pietro
You do not have the required permissions to view the files attached to this post.
Personal map database: http://www.ut99maps.net

"These are the days that we will return to one day in the future only in memories." (The Midnight)
Eternity
Skilled
Posts: 178
Joined: Sat Nov 30, 2019 10:56 pm

Re: Writing game modes - Where to start?

Post by Eternity »

This UScript Browser is more handy than on unrealarchive.org: https://madrixis.de/undox/classtree.html (but for v436 only...)