TUTORIAL: how to make a tank


(FAQIS) #1

Hello all forum members, Ive searched for a good tutorial for a tank a long time, so I guess its a good idea to make one. If you got any ideas post them here and I will try to keep this post updated:)

So first of all, get a working map

How to make a custom tank:

1a: look up all the tags for the models
1b: Place all models as a visual help and create a clip for the whole tank.

2a: place an origin for the base model

DEF: the base model is the model the script_mover is showing from the model2 -key…

There is a place/origin box on the model and it should be at the same place as the models zero point is there, the origin of the model will later be the same as the script…

Rule: always, use the same value/name for targetname and scriptname.

2ab: the origin is placed for the base model and the
“clip” is set; now we are supposed to remove the basemodel as we dont need 2 of them.

2b: hey hoe, v32 :smiley: now we need to create the very special script_mover

Select all the clips and the origin

Make it a script mover…

Select solid.

And give it scriptname and targetname: “tank”

Set the filename and pk3 path to the “base-model” with the main tag.

(hint, the main model usally got the model_origin in the height of the ground

Now you go to your script and put the other models to the right tags

use this command:

attachtotag <targetname> <tagname>

For example the shell model can have tagname: “tag_turrent”

WARNING: ALL MOVING MODELS MUST BE GAMEMODELS!!! (not models)
The misc_model cant move
The misc_gamemodel can

//I will upload prefabs for the stages later and explain the construction later :slight_smile:


(Teuthis) #2

Actually I recommend copy/paste from an open source file, otherwise it’s a real uphill battle. There are also prefab generator which make you a tank plus script in 5 sec. Will send you a link tomorrow


(FAQIS) #3

Aha?

But the prefab generators is kinda confusing…
And copy pasting is about the same…

Ive already read a thread here about tanks and did get a link to [UJE] (the mapping clan)
Where they had a genius prefab generator…

But you cant deside if you want a barrier or a brigde…
And I wanna understand everything… :slight_smile:

But thanks for helping!

Actually: I dont wanna use a normal jagdphanter or churchill… I wanna use a sherman tank… So that also makes the prefab generator hard to use :confused:


(-SSF-Sage) #4

http://www.pythononline.co.uk/et/tutorial38.htm


(Teuthis) #5

Seems you are new in the field. Making the tank all by yourself is very likely going to fail, even for the more advanced people as there are a lot of tiny entities coming with the tank, like origin brushes, cammand map marker etc. A bridge is an obstacle you want the tank to stop is not that much different scriptwise as a barrier. So Changing this is not that hard. Why don’t you follow the tutorial mentioned above to see if you can make it your own and then you come back to the generator. There is a reason why those prefab generator exist, because it’s damn difficult to make it yourself :slight_smile:


(FAQIS) #6

okey I will try to follow 2bit’s tutorial, but the english is kinda hard :confused:

If I make a working one I will upload it and give you a link…

but, I wanna be very clear with this:

my idea:

1: fuel the tank

then the tank moves without escort to a barrier

2: destroy the barrier

then the tank moves to a brigde (without escort)

3: if the brigde is destroyed by axis, repair it with planks

then the tank moves to barrier 2 (without escort)

4: destroy it (the second barrier

then the tank moves into a small park (without escort) and blow a big hole in a wall so the front of the house start burning

5: steal the blueprints of the german atomic bomb, secure them in the tank.

then the tank moves away to a second brigde, that also can be damaged…

6: repair the brigde, and when the tank is over the brigde: succes!

////this is not a normal map, the tank moves atomatically to fit the competition gameplay :slight_smile: ///no repairing of the tank eighter :smiley:


(Teuthis) #7

If I may cite the first sentence from this tut:
“The tank is the biggest single element that you definitely don’t want to create from scratch”. However, If you make it you have all skills needed to make an awesome map.


(FAQIS) #8

@theutis: thanks, it makes me feel warm inside :slight_smile: (in fact, it was the model that was wrong for me, when I changed to a tiger II instead the actual tag problem disappeared XD, and Ive just created a working tank from scratch :))

So now its only some awesome brushwork I need :slight_smile:

Anyone who know a good sound for a tiger tank that can loop ?