Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Easy-To-Use-Building/Consumable-Spawning-Script - A Config Script for Team Fortress 2

45 2 kb Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//RED TEAM

//Sentry
alias rs3 "ent_create obj_sentrygun teamnum 2 defaultupgrade 2 spawnflags 4 spawnflags 8"
alias rs2 "ent_create obj_sentrygun teamnum 2 defaultupgrade 1 spawnflags 4 spawnflags 8"
alias rs1 "ent_create obj_sentrygun teamnum 2 defaultupgrade 0 spawnflags 4 spawnflags 8"

//Dispenser
alias rd3 "ent_create obj_dispenser teamnum 2 defaultupgrade 2 spawnflags 4 spawnflags 8"
alias rd2 "ent_create obj_dispenser teamnum 2 defaultupgrade 1 spawnflags 4 spawnflags 8"
alias rd1 "ent_create obj_dispenser teamnum 2 defaultupgrade 0 spawnflags 4 spawnflags 8"

//Teleporter
alias rt3 "ent_create obj_teleporter teamnum 2 defaultupgrade 2 spawnflags 4 spawnflags 8"
alias rt2 "ent_create obj_teleporter teamnum 2 defaultupgrade 1 spawnflags 4 spawnflags 8"
alias rt1 "ent_create obj_teleporter teamnum 2 defaultupgrade 0 spawnflags 4 spawnflags 8"


//BLUE TEAM
//Sentry
alias bs3 "ent_create obj_sentrygun teamnum 3 defaultupgrade 2 spawnflags 4 spawnflags 8"
alias bs2 "ent_create obj_sentrygun teamnum 3 defaultupgrade 1 spawnflags 4 spawnflags 8"
alias bs1 "ent_create obj_sentrygun teamnum 3 defaultupgrade 0 spawnflags 4 spawnflags 8"

//dispenser
alias bd3 "ent_create obj_dispenser teamnum 3 defaultupgrade 2 spawnflags 4 spawnflags 8"
alias bd2 "ent_create obj_dispenser teamnum 3 defaultupgrade 1 spawnflags 4 spawnflags 8"
alias bd1 "ent_create obj_dispenser teamnum 3 defaultupgrade 0 spawnflags 4 spawnflags 8"

//Teleporter
alias bt3 "ent_create obj_teleporter teamnum 3 defaultupgrade 2 spawnflags 4 spawnflags 8"
alias bt2 "ent_create obj_teleporter teamnum 3 defaultupgrade 1 spawnflags 4 spawnflags 8"
alias bt1 "ent_create obj_teleporter teamnum 3 defaultupgrade 0 spawnflags 4 spawnflags 8"


//CONSUMABLES
//HealthKit
alias hk3 "ent_create item_healthkit_full"
alias hk2 "ent_create item_healthkit_medium"
alias hk1 "ent_create item_healthkit_small"

//Ammopack
alias ap3 "ent_create item_ammopack_full"
alias ap2 "ent_create item_ammopack_medium"
alias ap1 "ent_create item_ammopack_small"

Features commands to spawn buildings/consumables.

This is a simple command script to spawn buildings/consumables in tf2.
Note: this [might] not work without sv_cheats on.

Commands for buildings:

You can think of it like this:
There are only 3 letters/numbers to type. 

First letter is what team, 
"r" for red, and "b" for blue. 

The second letter is is what building, 
"s" for sentry, "d" for dispenser, and "t" for teleporter.

And last letter is actually a number. The number represents what level the building is,
"3" is for level three buildings, "2" is for level 2 buildings, and "1" is for level 1 buildings.

Example:
To build a red level 1 sentry, type rs1 into your console.

Commands for consumables:
These are a little easier.
The commands are still only three characters, but follow a slightly different rule.

For health kits, the first two letters are "hk for health kit.
The number at the end represents what size heath kit.
"3" is the biggest heath kit, "2" is the medium heath kit, and "1" is the smallest heathkit.

For ammo packs, the first two letters are "ap" for ammo pack.
The number at the end represents what size ammo pack.
"3" is the biggest ammo pack, "2" is the medium ammo pack, and "1" is the smallest ammo pack.

Example:
To place a medium ammo pack, type ap2 into your console.
Sign up to access this!

No comments yet