15.03.2010, 09:13
|
#25
|
Новичок
Регистрация: 07.03.2010
Сообщений: 12
Сказал(а) спасибо: 8
Поблагодарили 6 раз(а) в 5 сообщениях
|
Цитата:
Сообщение от DiffuSer
Господа, подсобите.
Нужен файлик с описанием флагов вехиклов (в частности, интересует вопрос, как прибить вехил к земле, чтобы на нем кататься было нельзя).
И второй момент - раньше (точно помню, было когда-то), при посадке в вехил он не дублировался, ты уезжал, а на месте не оставалось стоят ничего и при выходе из вехила он оставался стоять там, где ты из него вышел и другой мог сесть в него. Кто знает, как сейчас так сделать - подскажите плз.
|
src\game\SharedDefines.h
Код:
enum CustomVehicleFLags
{
VF_CANT_MOVE = 0x0001, // vehicle cant move, only turn, maybe handle by some auras?
VF_FACTION = 0x0002, // vehicle retain its own faction
VF_DESPAWN_NPC = 0x0004, // vehicle will delete npc on spellclick
VF_DESPAWN_AT_LEAVE = 0x0008, // vehicle will be deleted when rider leaves
VF_CAN_BE_HEALED = 0x0010, // vehicle can be healed
VF_GIVE_EXP = 0x0020, // vehicle will give exp for killing enemies
VF_MOVEMENT = 0x0040, // vehicle will move on its own, not depending on rider, however rider can cast spells
VF_NON_SELECTABLE = 0x0080, // vehicle will be not selectable after rider enter
VF_FLYING = 0x0100, // Hack for now (256 in DB)
VF_CAST_AURA = 0x0200, // Cast spell1 on player on vehicle enter and remove when he leaves.
VF_ALLOW_MELEE = 0x0400 // Allow melee for players on vehicle
};
enum CustomVehicleSeatFLags
{
SF_MAIN_RIDER = 0x0001, // the one who controlls vehicle, can also cast spells
SF_UNATTACKABLE = 0x0002, // hided inside, and unatackable until vehicle is destroyed
SF_CAN_CAST = 0x0004, // player/npc can rotate, and cast OWN spells
SF_UNACCESSIBLE = 0x0008 // player cant enter this seat by normal way (only by script)
};
|
|
|