/
tf_proto_def_messages.proto
596 lines (545 loc) · 32 KB
/
tf_proto_def_messages.proto
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
import "google/protobuf/descriptor.proto";
option optimize_for = SPEED;
option cc_generic_services = false;
extend .google.protobuf.MessageOptions {
optional bool start_expanded = 80000 [default = true];
}
extend .google.protobuf.FieldOptions {
optional .ProtoDefTypes valid_type = 70000 [default = DEF_TYPE_QUEST_MAP_NODE];
optional bool editable = 70001 [default = true];
optional bool localized = 70002 [default = false];
optional bool do_not_inherit = 70003 [default = false];
optional string display_name = 70004;
optional string comment = 70005;
optional uint32 max_count = 70007;
optional bool allow_add = 70008 [default = true];
optional bool allow_delete = 70009 [default = true];
optional string panel_class_override = 70010;
optional string message_inherhitance_key_field_name = 70011;
optional bool inherit_reference_variables = 70012 [default = false];
optional bool self_inherit_only = 70013 [default = false];
optional .EVarFieldType var_field_type = 70014 [default = VAR_TYPE_INVALID];
optional bool merging_key_field = 70015 [default = false];
}
enum LogicalOperation {
AND = 0;
OR = 1;
NOT = 2;
}
enum EValueDefinitionSource {
REFERENCE_DEFINES = 0;
PARENT_DEFINES = 1;
THIS_DEFINES = 2;
VARIABLE_DEFINES = 3;
NOT_DEFINED = 4;
}
enum ProtoDefTypes {
DEF_TYPE_QUEST_MAP_NODE = 0;
DEF_TYPE_QUEST_THEME = 2;
DEF_TYPE_QUEST_MAP_REGION = 3;
DEF_TYPE_QUEST = 4;
DEF_TYPE_QUEST_OBJECTIVE = 5;
DEF_TYPE_PAINTKIT_VARIABLES = 6;
DEF_TYPE_PAINTKIT_OPERATION = 7;
DEF_TYPE_PAINTKIT_ITEM_DEFINITION = 8;
DEF_TYPE_PAINTKIT_DEFINITION = 9;
DEF_TYPE_HEADER_ONLY = 10;
DEF_TYPE_QUEST_MAP_STORE_ITEM = 11;
DEF_TYPE_QUEST_MAP_STAR_TYPE = 12;
}
enum EQuestPoints {
QUEST_POINTS_NOVICE = 0;
QUEST_POINTS_ADVANCED = 1;
QUEST_POINTS_EXPERT = 2;
}
enum EVarFieldType {
VAR_TYPE_INVALID = 1;
VAR_TYPE_FLOAT = 2;
VAR_TYPE_DOUBLE = 3;
VAR_TYPE_UINT32 = 4;
VAR_TYPE_UINT64 = 5;
VAR_TYPE_SINT32 = 6;
VAR_TYPE_SINT64 = 7;
VAR_TYPE_BOOL = 8;
VAR_TYPE_STRING = 9;
}
enum ENodeCashReward {
CASH_REWARD_NONE = 1;
CASH_REWARD_SMALL = 2;
CASH_REWARD_MEDIUM = 3;
CASH_REWARD_LARGE = 4;
}
message CMsgFieldID {
message CMsgField {
optional uint32 field_number = 1;
optional uint32 repeated_index = 2;
}
repeated .CMsgFieldID.CMsgField field = 1;
}
message CMsgUniversalFieldID {
optional .EValueDefinitionSource source_type = 1 [default = REFERENCE_DEFINES];
optional .CMsgProtoDefID defining_obj_id = 2;
optional .CMsgFieldID field_id = 3;
}
message CMsgVariableDefinition {
optional string name = 1 [(editable) = false, (allow_add) = false, (allow_delete) = false, (merging_key_field) = true];
optional bool inherit = 2 [default = true];
optional string value = 3;
}
message CMsgProtoDefHeader {
required uint32 defindex = 1 [(editable) = false, (display_name) = "Defindex", (comment) = "Autogenerated", (allow_add) = false, (allow_delete) = false, (self_inherit_only) = true];
optional string name = 2 [(editable) = false, (display_name) = "Name", (comment) = "Name to show in the editor", (allow_add) = false, (allow_delete) = false, (self_inherit_only) = true];
repeated .CMsgProtoDefID prefabs = 3 [(editable) = false, (display_name) = "Prefab", (comment) = "Inherit the values of these definitions, in order from top to bottom.", (allow_add) = false, (allow_delete) = false, (panel_class_override) = "CPrefabFieldEditingPanel", (self_inherit_only) = true];
repeated string tags = 4 [(editable) = false, (display_name) = "Tags", (comment) = "Strings used to describe this definition while searching. ie. 'class', 'shotgun', 'easy'", (allow_add) = false, (allow_delete) = false];
optional bool prefab_only = 5 [default = false, (editable) = false, (display_name) = "Pure Prefab", (comment) = "If true, this is only a prefab and will not be made into an object", (allow_add) = false, (allow_delete) = false, (self_inherit_only) = true];
repeated .CMsgVariableDefinition variables = 6 [(editable) = false, (display_name) = "Variables", (comment) = "Variable value definitions", (allow_add) = false, (allow_delete) = false, (message_inherhitance_key_field_name) = "name"];
}
message CMsgValidTypes {
repeated .ProtoDefTypes types = 1;
}
message CMsgProtoDefID {
optional uint32 defindex = 1;
optional .ProtoDefTypes type = 2 [default = DEF_TYPE_QUEST_MAP_NODE];
oneof instance {
.CMsgQuestMapNodeDef instance_def_type_quest_map_node = 3;
.CMsgQuestTheme instance_def_type_quest_theme = 5;
.CMsgQuestMapRegionDef instance_def_type_quest_map_region = 6;
.CMsgQuestDef instance_def_type_quest = 7;
.CMsgQuestObjectiveDef instance_def_type_quest_objective = 8;
.CMsgPaintKit_Variables instance_def_type_paintkit_variables = 9;
.CMsgPaintKit_Operation instance_def_type_paintkit_operation = 10;
.CMsgPaintKit_ItemDefinition instance_def_type_paintkit_item_definition = 11;
.CMsgPaintKit_Definition instance_def_type_paintkit_definition = 12;
.CMsgHeaderOnly instance_def_type_header_only = 13;
}
}
message CMsgQuestObjectiveDef {
enum ETF2GameModes {
kGameCategory_Escort = 0;
kGameCategory_CTF = 1;
kGameCategory_AttackDefense = 2;
kGameCategory_Koth = 3;
kGameCategory_CP = 4;
kGameCategory_EscortRace = 5;
kGameCategory_EventMix = 6;
kGameCategory_SD = 7;
kGameCategory_Quickplay = 8;
kGameCategory_Event247 = 9;
kGameCategory_Arena = 10;
kGameCategory_RobotDestruction = 11;
kGameCategory_Powerup = 12;
kGameCategory_Featured = 13;
kGameCategory_Passtime = 14;
kGameCategory_Community_Update = 15;
kGameCategory_Misc = 16;
kGameCategory_Competitive_6v6 = 17;
kGameCategory_Other = 18;
kGameCategory_Halloween = 19;
}
enum ETF2Conditions {
TF_COND_AIMING = 0;
TF_COND_ZOOMED = 1;
TF_COND_DISGUISING = 2;
TF_COND_DISGUISED = 3;
TF_COND_STEALTHED = 4;
TF_COND_INVULNERABLE = 5;
TF_COND_TELEPORTED = 6;
TF_COND_TAUNTING = 7;
TF_COND_INVULNERABLE_WEARINGOFF = 8;
TF_COND_STEALTHED_BLINK = 9;
TF_COND_SELECTED_TO_TELEPORT = 10;
TF_COND_CRITBOOSTED = 11;
TF_COND_TMPDAMAGEBONUS = 12;
TF_COND_FEIGN_DEATH = 13;
TF_COND_PHASE = 14;
TF_COND_STUNNED = 15;
TF_COND_OFFENSEBUFF = 16;
TF_COND_SHIELD_CHARGE = 17;
TF_COND_DEMO_BUFF = 18;
TF_COND_ENERGY_BUFF = 19;
TF_COND_RADIUSHEAL = 20;
TF_COND_HEALTH_BUFF = 21;
TF_COND_BURNING = 22;
TF_COND_HEALTH_OVERHEALED = 23;
TF_COND_URINE = 24;
TF_COND_BLEEDING = 25;
TF_COND_DEFENSEBUFF = 26;
TF_COND_MAD_MILK = 27;
TF_COND_MEGAHEAL = 28;
TF_COND_REGENONDAMAGEBUFF = 29;
TF_COND_MARKEDFORDEATH = 30;
TF_COND_NOHEALINGDAMAGEBUFF = 31;
TF_COND_SPEED_BOOST = 32;
TF_COND_CRITBOOSTED_PUMPKIN = 33;
TF_COND_CRITBOOSTED_USER_BUFF = 34;
TF_COND_CRITBOOSTED_DEMO_CHARGE = 35;
TF_COND_SODAPOPPER_HYPE = 36;
TF_COND_CRITBOOSTED_FIRST_BLOOD = 37;
TF_COND_CRITBOOSTED_BONUS_TIME = 38;
TF_COND_CRITBOOSTED_CTF_CAPTURE = 39;
TF_COND_CRITBOOSTED_ON_KILL = 40;
TF_COND_CANNOT_SWITCH_FROM_MELEE = 41;
TF_COND_DEFENSEBUFF_NO_CRIT_BLOCK = 42;
TF_COND_REPROGRAMMED = 43;
TF_COND_CRITBOOSTED_RAGE_BUFF = 44;
TF_COND_DEFENSEBUFF_HIGH = 45;
TF_COND_SNIPERCHARGE_RAGE_BUFF = 46;
TF_COND_DISGUISE_WEARINGOFF = 47;
TF_COND_MARKEDFORDEATH_SILENT = 48;
TF_COND_DISGUISED_AS_DISPENSER = 49;
TF_COND_SAPPED = 50;
TF_COND_INVULNERABLE_HIDE_UNLESS_DAMAGED = 51;
TF_COND_INVULNERABLE_USER_BUFF = 52;
TF_COND_HALLOWEEN_BOMB_HEAD = 53;
TF_COND_HALLOWEEN_THRILLER = 54;
TF_COND_RADIUSHEAL_ON_DAMAGE = 55;
TF_COND_CRITBOOSTED_CARD_EFFECT = 56;
TF_COND_INVULNERABLE_CARD_EFFECT = 57;
TF_COND_MEDIGUN_UBER_BULLET_RESIST = 58;
TF_COND_MEDIGUN_UBER_BLAST_RESIST = 59;
TF_COND_MEDIGUN_UBER_FIRE_RESIST = 60;
TF_COND_MEDIGUN_SMALL_BULLET_RESIST = 61;
TF_COND_MEDIGUN_SMALL_BLAST_RESIST = 62;
TF_COND_MEDIGUN_SMALL_FIRE_RESIST = 63;
TF_COND_STEALTHED_USER_BUFF = 64;
TF_COND_MEDIGUN_DEBUFF = 65;
TF_COND_STEALTHED_USER_BUFF_FADING = 66;
TF_COND_BULLET_IMMUNE = 67;
TF_COND_BLAST_IMMUNE = 68;
TF_COND_FIRE_IMMUNE = 69;
TF_COND_PREVENT_DEATH = 70;
TF_COND_MVM_BOT_STUN_RADIOWAVE = 71;
TF_COND_HALLOWEEN_SPEED_BOOST = 72;
TF_COND_HALLOWEEN_QUICK_HEAL = 73;
TF_COND_HALLOWEEN_GIANT = 74;
TF_COND_HALLOWEEN_TINY = 75;
TF_COND_HALLOWEEN_IN_HELL = 76;
TF_COND_HALLOWEEN_GHOST_MODE = 77;
TF_COND_MINICRITBOOSTED_ON_KILL = 78;
TF_COND_OBSCURED_SMOKE = 79;
TF_COND_PARACHUTE_ACTIVE = 80;
TF_COND_BLASTJUMPING = 81;
TF_COND_HALLOWEEN_KART = 82;
TF_COND_HALLOWEEN_KART_DASH = 83;
TF_COND_BALLOON_HEAD = 84;
TF_COND_MELEE_ONLY = 85;
TF_COND_SWIMMING_CURSE = 86;
TF_COND_FREEZE_INPUT = 87;
TF_COND_HALLOWEEN_KART_CAGE = 88;
TF_COND_DONOTUSE_0 = 89;
TF_COND_RUNE_STRENGTH = 90;
TF_COND_RUNE_HASTE = 91;
TF_COND_RUNE_REGEN = 92;
TF_COND_RUNE_RESIST = 93;
TF_COND_RUNE_VAMPIRE = 94;
TF_COND_RUNE_REFLECT = 95;
TF_COND_RUNE_PRECISION = 96;
TF_COND_RUNE_AGILITY = 97;
TF_COND_GRAPPLINGHOOK = 98;
TF_COND_GRAPPLINGHOOK_SAFEFALL = 99;
TF_COND_GRAPPLINGHOOK_LATCHED = 100;
TF_COND_GRAPPLINGHOOK_BLEEDING = 101;
TF_COND_AFTERBURN_IMMUNE = 102;
TF_COND_RUNE_KNOCKOUT = 103;
TF_COND_RUNE_IMBALANCE = 104;
TF_COND_CRITBOOSTED_RUNE_TEMP = 105;
TF_COND_PASSTIME_INTERCEPTION = 106;
TF_COND_SWIMMING_NO_EFFECTS = 107;
TF_COND_PURGATORY = 108;
TF_COND_RUNE_KING = 109;
TF_COND_RUNE_PLAGUE = 110;
TF_COND_RUNE_SUPERNOVA = 111;
TF_COND_PLAGUE = 112;
TF_COND_KING_BUFFED = 113;
TF_COND_TEAM_GLOWS = 114;
TF_COND_KNOCKED_INTO_AIR = 115;
TF_COND_COMPETITIVE_WINNER = 116;
TF_COND_COMPETITIVE_LOSER = 117;
TF_COND_HEALING_DEBUFF = 118;
TF_COND_PASSTIME_PENALTY_DEBUFF = 119;
TF_COND_PARACHUTE_DEPLOYED = 120;
TF_COND_NO_COMBAT_SPEED_BOOST = 121;
TF_COND_TRANQ_SPY_BOOST = 122;
TF_COND_TRANQ_MARKED = 123;
TF_COND_ROCKETPACK = 126;
TF_COND_ROCKETPACK_PASSENGER = 127;
TF_COND_STEALTHED_PHASE = 128;
TF_COND_CLIP_OVERLOAD = 129;
TF_COND_SPY_CLASS_STEAL = 130;
TF_COND_GAS = 131;
}
enum ETF2Team {
TF_TEAM_RED = 2;
TF_TEAM_BLUE = 3;
}
required .CMsgProtoDefHeader header = 1;
optional string loc_desctoken = 2 [(editable) = false, (localized) = true, (allow_add) = false, (allow_delete) = false];
optional uint32 points = 3;
optional uint32 conditions_defindex = 5;
repeated string map = 8 [(editable) = false, (display_name) = "Maps Modifier", (comment) = "If set, the player must be on one of the listed maps to get credit.", (allow_add) = false, (allow_delete) = false];
repeated .CMsgQuestObjectiveDef.ETF2GameModes game_mode = 9 [(editable) = false, (display_name) = "Game Mode Modifier", (comment) = "If set, the player must be in one of the listed game modes to get credit.", (allow_add) = false, (allow_delete) = false];
optional .CMsgQuestObjectiveDef.ETF2Team team = 10 [default = TF_TEAM_RED, (editable) = false, (display_name) = "Team Modifier", (comment) = "If set, the player must be on the specified team to get credit.", (allow_add) = false, (allow_delete) = false];
repeated .CMsgVarField condition_vars = 11 [(editable) = false, (display_name) = "Objective Vars", (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
repeated .CMsgVarField classes_vars = 12 [(editable) = false, (display_name) = "Class Modifier", (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
repeated .CMsgQuestObjectiveDef.ETF2Conditions conditions = 13 [(editable) = false, (display_name) = "Required Conds", (allow_add) = false, (allow_delete) = false];
optional .LogicalOperation condition_logic = 14 [default = AND, (editable) = false, (display_name) = "Condition Logic", (comment) = "What kind of logic to use when evaluating the player's conditions.", (allow_add) = false, (allow_delete) = false];
repeated string item_name = 15 [(editable) = false, (display_name) = "Required equipped item", (comment) = "Require that this item be equipped in any slot.", (allow_add) = false, (allow_delete) = false];
optional .LogicalOperation item_logic = 16 [default = AND, (editable) = false, (display_name) = "Item logic", (comment) = "What kind of logic to use when evaluating the player's items.", (allow_add) = false, (allow_delete) = false];
optional uint32 jump_state = 17 [(editable) = false, (display_name) = "Jump logic", (comment) = "What state of jumping the player needs to be in.", (allow_add) = false, (allow_delete) = false];
}
message CMsgQuestDef {
message MMCriteria {
optional string group_name = 1;
optional string category_name = 2;
optional string map_name = 3;
}
message ObjectiveInstance {
optional .CMsgProtoDefID objective = 1 [(valid_type) = DEF_TYPE_QUEST_OBJECTIVE, (editable) = false, (allow_add) = false, (allow_delete) = false];
optional .EQuestPoints point_type = 2 [default = QUEST_POINTS_NOVICE];
optional uint32 point_value = 3 [(editable) = false, (display_name) = "Points Override", (comment) = "Override value for the point value of the objective. If not set, uses the objective's point value", (allow_add) = false, (allow_delete) = false];
}
required .CMsgProtoDefHeader header = 1;
optional uint32 max_points_0 = 2;
optional uint32 max_points_1 = 3;
optional uint32 max_points_2 = 4;
optional string name_loctoken = 5 [(editable) = false, (localized) = true, (allow_add) = false, (allow_delete) = false];
optional string operation = 7;
optional .CMsgQuestDef.MMCriteria mm_criteria = 8;
optional string node_image = 12 [(editable) = false, (display_name) = "Node Image", (comment) = "Filename of the image to show on the node view", (allow_add) = false, (allow_delete) = false];
optional string icon_image = 13 [(editable) = false, (display_name) = "Node Icon", (comment) = "Which icon to show on the map", (allow_add) = false, (allow_delete) = false];
optional .CMsgProtoDefID theme = 14 [(valid_type) = DEF_TYPE_QUEST_THEME, (editable) = false, (allow_add) = false, (allow_delete) = false];
repeated string loaner_names = 15 [(editable) = false, (display_name) = "Loaners", (comment) = "Names of items to give as loaners", (allow_add) = false, (allow_delete) = false];
repeated .CMsgQuestDef.ObjectiveInstance objectives = 16;
repeated string map = 17 [(editable) = false, (display_name) = "Maps Modifier", (comment) = "If set, the player must be on one of the listed maps to get credit.", (allow_add) = false, (allow_delete) = false];
}
message CMsgQuestMapStoreItem {
required .CMsgProtoDefHeader header = 1;
optional string item_name = 2;
optional string reward_lootlist_name = 6 [(editable) = false, (display_name) = "Reward Lootlist", (comment) = "The name of the lootlist to roll as a reward", (allow_add) = false, (allow_delete) = false];
optional .CMsgVarField price = 3 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_SINT32];
optional uint32 purchase_limit = 4 [(editable) = false, (display_name) = "Purchase Limit", (comment) = "How many times this reward can be purchased", (allow_add) = false, (allow_delete) = false];
optional uint32 sort_group = 5 [(editable) = false, (display_name) = "Sort group", (comment) = "Sort by this group, then alhpabetically", (allow_add) = false, (allow_delete) = false];
}
message CMsgQuestMapRegionDef {
message RegionLink {
required .CMsgProtoDefID target_region_defid = 1 [(valid_type) = DEF_TYPE_QUEST_MAP_REGION, (editable) = false, (allow_add) = false, (allow_delete) = false];
optional uint32 xpos = 2;
optional uint32 ypos = 3;
}
required .CMsgProtoDefHeader header = 1;
optional string name = 2 [(editable) = false, (localized) = true, (allow_add) = false, (allow_delete) = false];
optional string resfile = 3;
repeated .CMsgQuestMapRegionDef.RegionLink links = 4;
optional .CMsgProtoDefID return_link = 5 [(valid_type) = DEF_TYPE_QUEST_MAP_REGION, (editable) = false, (display_name) = "Return Link", (comment) = "Which link we go to when right-clicking in this region", (allow_add) = false, (allow_delete) = false];
optional float radio_freq = 6 [(editable) = false, (display_name) = "Radio Freq.", (comment) = "Where the radio tuner goes on the CYOA PDA when this region is selection", (allow_add) = false, (allow_delete) = false];
optional float zoom_scale = 7 [(editable) = false, (display_name) = "Zoom Scale", (comment) = "How zoomed in this panel should be. Affects the scale of the map grid lines and node link dashed lines", (allow_add) = false, (allow_delete) = false];
optional .CMsgProtoDefID star_type = 8 [(valid_type) = DEF_TYPE_QUEST_MAP_STAR_TYPE, (editable) = false, (display_name) = "Star Type", (comment) = "What stars (if any) the nodes within use to unlock", (allow_add) = false, (allow_delete) = false];
}
message CMsgVarField {
optional string variable = 1 [(editable) = false, (allow_add) = false, (allow_delete) = false, (merging_key_field) = true];
oneof value {
float float = 2;
double double = 3;
uint32 uint32 = 4;
uint64 uint64 = 5;
sint32 sint32 = 6;
sint64 sint64 = 7;
bool bool = 8;
string string = 9;
}
}
message CMsgQuestMapStarType {
required .CMsgProtoDefHeader header = 1;
optional string name = 2 [(editable) = false, (localized) = true, (display_name) = "Type Name", (allow_add) = false, (allow_delete) = false];
}
message CMsgQuestMapNodeDef {
required .CMsgProtoDefHeader header = 1;
optional string name_loctoken = 4 [(editable) = false, (localized) = true, (display_name) = "Node Name", (comment) = "The name of this node", (allow_add) = false, (allow_delete) = false];
optional float x_pos = 6 [(editable) = false, (display_name) = "Map X Pos", (comment) = "X position on the quest map", (allow_add) = false, (allow_delete) = false];
optional float y_pos = 7 [(editable) = false, (display_name) = "Map Y Pos", (comment) = "Y position on the quest map", (allow_add) = false, (allow_delete) = false];
optional .CMsgQuestMapNodeCondition condition = 9 [(editable) = false, (display_name) = "Conditions", (comment) = "Logic to unlock this node. Can be nested with logic", (allow_add) = false, (allow_delete) = false];
optional .CMsgProtoDefID owning_region = 10 [(valid_type) = DEF_TYPE_QUEST_MAP_REGION, (editable) = false, (display_name) = "Region", (comment) = "Which region in the map this node shows up in", (allow_add) = false, (allow_delete) = false];
repeated .CMsgProtoDefID quest_options = 11 [(valid_type) = DEF_TYPE_QUEST, (editable) = false, (display_name) = "Offered Quests", (comment) = "Which quests this node offers.", (max_count) = 3, (allow_add) = false, (allow_delete) = false];
optional string associated_operation = 16 [(editable) = false, (display_name) = "Associated Operation", (comment) = "Operation this node is associated with", (allow_add) = false, (allow_delete) = false];
optional string reward_item_name = 18 [(editable) = false, (display_name) = "Reward Item", (comment) = "The name of an item to give as a reward", (allow_add) = false, (allow_delete) = false];
optional string reward_lootlist_name = 22 [(editable) = false, (display_name) = "Reward Lootlist", (comment) = "The name of the lootlist to roll as a reward", (allow_add) = false, (allow_delete) = false];
optional .ENodeCashReward cash_reward = 19 [default = CASH_REWARD_NONE, (editable) = false, (display_name) = "Cash Reward", (comment) = "How much cash to give when completing the primary objective", (allow_add) = false, (allow_delete) = false];
optional .CMsgProtoDefID star_type = 20 [(valid_type) = DEF_TYPE_QUEST_MAP_STAR_TYPE, (editable) = false, (display_name) = "Star Type", (comment) = "Which type of star this node uses", (allow_add) = false, (allow_delete) = false];
optional uint32 stars_to_unlock = 21 [default = 1, (editable) = false, (display_name) = "Stars to Unlock", (comment) = "Numbers of stars it costs to unlock", (allow_add) = false, (allow_delete) = false];
}
message CMsgPaintKit_Variables {
required .CMsgProtoDefHeader header = 1;
}
message CMsgPaintKit_Operation_TextureStage {
optional .CMsgVarField texture = 1 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField texture_red = 2 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField texture_blue = 3 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_black = 4 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_offset = 5 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_gamma = 6 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField rotation = 7 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField translate_u = 8 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField translate_v = 9 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField scale_uv = 10 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField flip_u = 11 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField flip_v = 12 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
}
message CMsgPaintKit_Operation_CombineStage {
optional .CMsgVarField adjust_black = 1 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_offset = 2 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_gamma = 3 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField rotation = 4 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField translate_u = 5 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField translate_v = 6 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField scale_uv = 7 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField flip_u = 8 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField flip_v = 9 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
repeated .CMsgPaintKit_OperationNode operation_node = 11;
}
message CMsgPaintKit_Operation_SelectStage {
optional .CMsgVarField groups = 1 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
repeated .CMsgVarField select = 2 [(editable) = false, (max_count) = 16, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
}
message CMsgPaintKit_Operation_Sticker {
optional .CMsgVarField base = 1 [(editable) = false, (comment) = "Name of the base file for the sticker (the albedo)", (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField weight = 2 [(editable) = false, (comment) = "Random likelihood this one is to be selected", (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField spec = 3 [(editable) = false, (comment) = "Name of the specular file for the sticker, or if blank we will assume it is baseFilename + _spec + baseExtension", (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
}
message CMsgPaintKit_Operation_StickerStage {
repeated .CMsgPaintKit_Operation_Sticker sticker = 1;
optional .CMsgVarField dest_tl = 2 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField dest_tr = 3 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField dest_bl = 4 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_black = 5 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_offset = 6 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
optional .CMsgVarField adjust_gamma = 7 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
repeated .CMsgPaintKit_OperationNode operation_node = 9;
}
message CMsgPaintKit_OperationStage {
oneof stage {
.CMsgPaintKit_Operation_TextureStage texture_lookup = 1;
.CMsgPaintKit_Operation_CombineStage combine_add = 2;
.CMsgPaintKit_Operation_CombineStage combine_lerp = 3;
.CMsgPaintKit_Operation_CombineStage combine_multiply = 4;
.CMsgPaintKit_Operation_SelectStage select = 5;
.CMsgPaintKit_Operation_StickerStage apply_sticker = 6;
}
}
message CMsgPaintKit_OperationNode {
oneof node {
.CMsgPaintKit_OperationStage stage = 1;
.CMsgProtoDefID operation_template = 2 [(valid_type) = DEF_TYPE_PAINTKIT_OPERATION, (editable) = false, (allow_add) = false, (allow_delete) = false, (inherit_reference_variables) = true];
}
}
message CMsgPaintKit_Operation {
required .CMsgProtoDefHeader header = 1;
repeated .CMsgPaintKit_OperationNode operation_node = 2;
}
message CMsgPaintKit_ItemDefinition {
message Definition {
optional .CMsgProtoDefID operation_template = 1 [(valid_type) = DEF_TYPE_PAINTKIT_OPERATION, (editable) = false, (allow_add) = false, (allow_delete) = false];
repeated .CMsgVarField variable = 2 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
}
required .CMsgProtoDefHeader header = 1;
required uint32 item_definition_index = 2;
optional .CMsgProtoDefID variable_template = 3 [(valid_type) = DEF_TYPE_PAINTKIT_VARIABLES, (editable) = false, (allow_add) = false, (allow_delete) = false, (inherit_reference_variables) = true];
repeated .CMsgPaintKit_ItemDefinition.Definition definition = 4 [(editable) = false, (max_count) = 5, (allow_add) = false, (allow_delete) = false];
}
message CMsgPaintKit_Definition {
message Item {
option (start_expanded) = false;
message ItemData {
optional bool can_apply_paintkit = 2 [default = true];
optional string material_override = 3;
repeated .CMsgVarField variable = 4 [(editable) = false, (allow_add) = false, (allow_delete) = false, (var_field_type) = VAR_TYPE_STRING];
}
required .CMsgProtoDefID item_definition_template = 1 [(valid_type) = DEF_TYPE_PAINTKIT_ITEM_DEFINITION, (editable) = false, (allow_add) = false, (allow_delete) = false, (panel_class_override) = "CPaintKitDefIdFieldProtoEditorField"];
optional .CMsgPaintKit_Definition.Item.ItemData data = 5;
}
required .CMsgProtoDefHeader header = 1;
optional string loc_desctoken = 2 [(editable) = false, (localized) = true, (allow_add) = false, (allow_delete) = false];
optional .CMsgProtoDefID operation_template = 3 [(valid_type) = DEF_TYPE_PAINTKIT_OPERATION, (editable) = false, (comment) = "operation template which all items in the list will use unless there's operation_template specified in an item_definition", (allow_add) = false, (allow_delete) = false, (inherit_reference_variables) = true];
optional bool has_team_textures = 4;
repeated .CMsgPaintKit_Definition.Item item = 5;
optional .CMsgPaintKit_Definition.Item paintkit_tool = 6;
optional .CMsgPaintKit_Definition.Item flamethrower = 7;
optional .CMsgPaintKit_Definition.Item grenadelauncher = 8;
optional .CMsgPaintKit_Definition.Item knife = 9;
optional .CMsgPaintKit_Definition.Item medigun = 10;
optional .CMsgPaintKit_Definition.Item minigun = 11;
optional .CMsgPaintKit_Definition.Item pistol = 12;
optional .CMsgPaintKit_Definition.Item revolver = 13;
optional .CMsgPaintKit_Definition.Item rocketlauncher = 14;
optional .CMsgPaintKit_Definition.Item scattergun = 15;
optional .CMsgPaintKit_Definition.Item shotgun = 16;
optional .CMsgPaintKit_Definition.Item smg = 17;
optional .CMsgPaintKit_Definition.Item sniperrifle = 18;
optional .CMsgPaintKit_Definition.Item stickybomb_launcher = 19;
optional .CMsgPaintKit_Definition.Item ubersaw = 20;
optional .CMsgPaintKit_Definition.Item wrench = 21;
optional .CMsgPaintKit_Definition.Item amputator = 22;
optional .CMsgPaintKit_Definition.Item atom_launcher = 23;
optional .CMsgPaintKit_Definition.Item back_scratcher = 24;
optional .CMsgPaintKit_Definition.Item battleaxe = 25;
optional .CMsgPaintKit_Definition.Item bazaar_sniper = 26;
optional .CMsgPaintKit_Definition.Item blackbox = 27;
optional .CMsgPaintKit_Definition.Item claidheamohmor = 28;
optional .CMsgPaintKit_Definition.Item crusaders_crossbow = 29;
optional .CMsgPaintKit_Definition.Item degreaser = 30;
optional .CMsgPaintKit_Definition.Item demo_cannon = 31;
optional .CMsgPaintKit_Definition.Item demo_sultan_sword = 32;
optional .CMsgPaintKit_Definition.Item detonator = 33;
optional .CMsgPaintKit_Definition.Item gatling_gun = 34;
optional .CMsgPaintKit_Definition.Item holymackerel = 35;
optional .CMsgPaintKit_Definition.Item jag = 36;
optional .CMsgPaintKit_Definition.Item lochnload = 37;
optional .CMsgPaintKit_Definition.Item powerjack = 38;
optional .CMsgPaintKit_Definition.Item quadball = 39;
optional .CMsgPaintKit_Definition.Item reserve_shooter = 40;
optional .CMsgPaintKit_Definition.Item riding_crop = 41;
optional .CMsgPaintKit_Definition.Item russian_riot = 42;
optional .CMsgPaintKit_Definition.Item scimitar = 43;
optional .CMsgPaintKit_Definition.Item scorch_shot = 44;
optional .CMsgPaintKit_Definition.Item shortstop = 45;
optional .CMsgPaintKit_Definition.Item soda_popper = 46;
optional .CMsgPaintKit_Definition.Item tele_shotgun = 47;
optional .CMsgPaintKit_Definition.Item tomislav = 48;
optional .CMsgPaintKit_Definition.Item trenchgun = 49;
optional .CMsgPaintKit_Definition.Item winger_pistol = 50;
}
message CMsgQuestTheme {
message WeightedString {
optional string string = 1;
optional uint32 weight = 2;
}
message WeightedStringSet {
repeated .CMsgQuestTheme.WeightedString weighted_strings = 1;
}
required .CMsgProtoDefHeader header = 1;
optional string notification_res = 2;
optional string quest_item_res = 3;
optional string in_game_tracker_res = 4;
repeated .CMsgQuestTheme.WeightedStringSet give_sounds = 5;
repeated .CMsgQuestTheme.WeightedStringSet complete_sounds = 6;
repeated .CMsgQuestTheme.WeightedStringSet fully_complete_sounds = 7;
optional string reward_sound = 8;
optional string discard_sound = 9;
optional string reveal_sound = 10;
}
message CMsgQuestMapNodeCondition_NodeState {
optional uint32 bonus_objectives_required = 1 [default = 0, (editable) = false, (display_name) = "Bonus Required", (comment) = "Number of bonus objectives required, on top of the primary objective", (allow_add) = false, (allow_delete) = false];
required .CMsgProtoDefID target_node_defid = 2 [(editable) = false, (display_name) = "Target Node", (comment) = "Which node is required to have the above number of medals", (allow_add) = false, (allow_delete) = false];
}
message CMsgQuestMapNodeCondition_Logic {
required .LogicalOperation operation = 1 [default = AND, (editable) = false, (display_name) = "Logic", (comment) = "Logical operation", (allow_add) = false, (allow_delete) = false];
repeated .CMsgQuestMapNodeCondition sub_conditions = 2 [(editable) = false, (display_name) = "Operands", (comment) = "Definitions to use in the logical operation", (allow_add) = false, (allow_delete) = false];
}
message CMsgQuestMapNodeCondition {
oneof operation {
.CMsgQuestMapNodeCondition_NodeState node_state = 1 [(editable) = false, (display_name) = "Node State Condition", (comment) = "Returns true if a specific node has a required number of medals", (allow_add) = false, (allow_delete) = false];
.CMsgQuestMapNodeCondition_Logic logical = 2 [(editable) = false, (display_name) = "Logical Condition", (comment) = "Performs a specified logical operation to all sub conditions", (allow_add) = false, (allow_delete) = false];
}
}
message CMsgHeaderOnly {
required .CMsgProtoDefHeader header = 1;
}