Sidebar

Новый класс энтити в fgd

Raid

VIP
Jul 11, 2006
8,308
33
220
0
CSM-чат
Новый класс энтити в fgd

Такие дела: нужно добавить в фгд новый класс поинт-энтити. Однако когда я туда залез, то сразу понял, что ничего не понял.

Например костюм:
Code:
@PointClass size(-16 -16 0, 16 16 36) base(Weapon, Targetx, Parent, Reflection) studio("models/hl/w_suit.mdl") = item_suit : "HEV Suit" 
[
	spawnflags(Flags) =
	[
		1 : "Short Logon" : 0
	]
]

Или что посложнее:
Code:
@PointClass base(Targetname) size(-24 -24 0, 24 24 16) color(20 190 60) = info_bigmomma : "Big Mamma Node" 
[
	spawnflags(Flags) =
	[
		1 : "Run To Node" : 0
		2 : "Wait Indefinitely" : 0
	]
	target(target_destination) : "Next node"
	radius(string) : "Radius" : "0"
	reachdelay(string) : "Wait after approach" : "0"
	killtarget(target_destination) : "KillTarget"
	reachtarget(target_destination) : "Fire on approach"
	reachsequence(string) : "Sequence on approach" : ""
	health(string) : "Health on approach" : ""
	presequence(string) : "Sequence before approach" : ""
]

Сабж, дискасс.
 

PREsideNT

Он же smiler
Jun 16, 2008
815
31
2 Raid:
По моему все предельно ясно, хотя я могу ошибаться, но все же:
Code:
@PointClass base(Targetname)/*наследование*/ size(-24 -24 0, 24 24 16) color(20 190 60)/*как отображается в редакторе*/ = info_bigmomma/*имя энтити*/ : "Big Mamma Node" /*какое то описание*/
[
	spawnflags(Flags) =
	[
		1 : "Run To Node" : 0
		2 : "Wait Indefinitely" : 0
	]/*номер: "имя флага": дефолт*/
	target(target_destination) : "Next node"/*здесь немного сложнее но думаю это: имя свойства(тип свойства) : "Отображаемое имя свойства":"дефолтное значение"*/
	radius(string) : "Radius" : "0"
	reachdelay(string) : "Wait after approach" : "0"
	killtarget(target_destination) : "KillTarget"
	reachtarget(target_destination) : "Fire on approach"
	reachsequence(string) : "Sequence on approach" : ""
	health(string) : "Health on approach" : ""
	presequence(string) : "Sequence before approach" : ""
]
 

Game Server

CSM TV

Page QR Code

QR Code

Donate Campaign

Total amount
$0.00
Goal
$25.00

Latest profile posts

TestUser wrote on TRUP@C's profile.
Master?
TestUser wrote on TRUP@C's profile.
Hello Father

Members online

No members online now.

Discord