// __________________________________ // WF entity definition v1.0 for WorldCraft v1.6 // written by Sad Punk // Made for WF v4.2 // This definition is made to run along with other definitions such as the CTF entity definition and Quake2 // entity definition // www.captured.com/sadmaps/ for my latest projects // sadpunk@captured.com // Modified from existing entities from the Quake2CTF entity definition that comes with WorldCraft v1.6 // Shareware // If this entity definition does not run right for you, you can contact me for help. I would recommend // using the WF definition that can be downloaded from the main WF site which is made to run // seperate. This one does have fixes and a less mixed up interface though. // I made this defintion for my personal use so it may have personal changes i made to it. There may also be some // errors because i have never testing it out in every way. // _________________________________ @baseclass = Appearflags [ spawnflags(Flags) = [ 256 : "Not in Easy" : 0 512 : "Not in Normal" : 0 1024 : "Not in Hard" : 0 2048 : "Not in Deathmatch" : 0 ] ] @baseclass = Targetname [ targetname(target_source) : "Name" ] @baseclass = Target [ target(target_destination) : "Target" ] // ----Info_Position---- //When %L is typed in the game, it will print the "Location Description" in its place @PointClass base(Appearflags) color(0 100 0) size(-8 -8 -8, 8 8 8)= info_position : "Location Description" [ message(string) : "Location Description" spawnflags(Flags) = [ 1 : "By Sight" : 0 2 : "No relative location" : 0 ] ] // ----Funtion_Button---- // Not only used by WF code, so i added all WF only keys to the bottom and put WF in front of them @SolidClass base(Appearflags, Target, Targetname) color(0 128 204) = func_button : "Button" [ killtarget(string) : "Kill Target" pathtarget(string) : "Elevator level target" speed(integer) : "Speed" : 40 wait(choices) : "Wait before reset" : 1 = [ -1 : "Never Return" ] lip(integer) : "Lip remaining after move" : 4 health(integer) : "Health (shootable)" sounds(choices) : "Sounds" : 0 = [ 0 : "Audible" 1 : "Silent" ] message(string) : "Activation message" _minlight(integer) : "Minimum light (optional)" // -WF code entity flags only- wf_team(choices) : "WF Team Activation" : 0 = [ 0 : "Both Teams" 1 : "Red Team Only" 2 : "Blue Team Only" ] bonustype(choices) : "WF Point Type Awarded" : 0 = [ 0 : "None" 1 : "Team Awarded Caps" 2 : "Player Awarded Frags" ] bonusvalue(integer) : "WF Amount Awarded" : 0 ] // ----Func_Door---- // Not only used by WF code, so i added all WF only keys to the bottom and put WF in front of them @SolidClass base(Appearflags, Targetname, Target) color(0 128 204) = func_door : "Door" [ spawnflags(Flags) = [ 1 : "Start Open" : 0 4 : "Crusher" : 0 8 : "No Monsters" : 0 16 : "Animated" : 0 32 : "Toggle" : 0 64 : "Animated Fast" : 0 ] killtarget(string) : "Kill Target" team(string) : "Team" message(string) : "Trigger message" health(integer) : "Health (shootable)" speed(integer) : "Speed" : 100 wait(choices) : "Wait before close" : 3 = [ -1 : "Stay open" ] lip(integer) : "Lip remaining after move" : 8 dmg(integer) : "Damage when blocked" : 2 sounds(choices) : "Sounds" : 0 = [ 0 : "Audible" 1 : "Silent" 2 : "Light" 3 : "Meduim" 4 : "Heavy" ] _minlight(integer) : "Minimum light (optional)" wf_team(choices) : "WF Team Activation" : 0 = [ 0 : "Both Teams" 1 : "Red Team Only" 2 : "Blue Team Only" ] ] // ----Func_Plat---- // Not only used by WF code, so i added all WF only keys to the bottom and put WF in front of them @SolidClass base(Appearflags, Targetname) color(0 128 204) = func_plat : "Platform" [ spawnflags(Flags) = [ 1 : "Plat Low Trigger" : 0 ] speed(integer) : "Speed" : 100 accel(integer) : "Acceleration" : 500 lip(integer) : "Lip remaining after move" : 8 height(integer) : "Movement distance" _minlight(integer) : "Minimum light (optional)" wf_team(choices) : "WF Team Activation" : 0 = [ 0 : "Both Teams" 1 : "Red Team Only" 2 : "Blue Team Only" ] ] // ----Multi Function Flags for Items---- @baseclass base(Appearflags, Target, Targetname) color(76 76 255) size(-16 -16 -16, 16 16 16) = Items [ team(string) : "Team" wf_team(choices) : "WF Team Collectable" : 0 = [ 0 : "Default" 1 : "Red Team Only" 2 : "Blue Team Only" ] ] // ----Items that use WF code---- // !!!Below items with a // in front of them do not support the item code written for them!!! //@PointClass base(Items) = item_adrenaline : "+1 to max health" [] //@PointClass base(Items) = item_ancient_head : "+2 to max health" [] //@PointClass base(Items) = item_armor_body : "Body armor" [] //@PointClass base(Items) = item_armor_combat : "Combat armor" [] //@PointClass base(Items) = item_armor_jacket : "Jacket armor" [] //@PointClass base(Items) = item_armor_shard : "Armor shard" [] //@PointClass base(Items) = item_bandolier : "Equipment belt" [] //@PointClass base(Items) = item_breather : "Underwater breather" [] //@PointClass base(Items) = item_enviro : "Enviro-Suit" [] //@PointClass base(Items) = item_health : "+10 health" [] //@PointClass base(Items) = item_health_small : "+2 health" [] //@PointClass base(Items) = item_health_large : "+25 health" [] //@PointClass base(Items) = item_health_mega : "+100 health" [] //@PointClass base(Items) = item_invulnerability : "Invulnerability" [] @PointClass base(Appearflags, Target, Targetname) color(76 76 255) size(-16 -16 -16, 16 16 16) = item_pack : "Heavy Backpack" [ team(string) : "Team" wf_team(choices) : "WF Team Collectable" : 0 = [ 0 : "Default" 1 : "Red Team Only" 2 : "Blue Team Only" 9 : "Fast Spawning-Both Teams" ] ] //@PointClass base(Items) = item_power_screen : "Power screen" [] //@PointClass base(Items) = item_power_shield : "Power shield" [] //@PointClass base(Items) = item_quad : "Quad damage" [] //@PointClass base(Items) = item_silencer : "Silencer" [] //@PointClass base(Items) = item_tech1 : "Resist tech" [] //@PointClass base(Items) = item_tech2 : "Strength tech" [] //@PointClass base(Items) = item_tech3 : "Haste tech" [] //@PointClass base(Items) = item_tech4 : "Regen tech" [] //@PointClass base(Items) = ammo_shells : "Shotgun ammo" [] //@PointClass base(Items) = ammo_bullets : "Machine/Chain gun ammo" [] //@PointClass base(Items) = ammo_cells : "Blaster/BFG ammo" [] //@PointClass base(Items) = ammo_grenades : "Grenades" [] //@PointClass base(Items) = ammo_rockets : "Rockets" [] //@PointClass base(Items) = ammo_slugs : "Rail gun ammo" [] @PointClass base(Items) = key_airstrike_target : "Tank commander's head" [] @PointClass base(Items) = key_blue_key : "Normal door key - blue" [] @PointClass base(Items) = key_commander_head : "Tank commander's head" [] @PointClass base(Items) = key_data_cd : "Key for computer centers" [] @PointClass base(Items) = key_data_spinner : "Key for city computer" [] @PointClass base(Items) = key_pass : "Security pass for secret level" [] @PointClass base(Items) = key_power_cube : "Warehouse circuits" [ spawnflags(Flags) = [ 1 : "Trigger Spawn" : 0 2 : "No Touch" : 0 ] ] @PointClass base(Items) = key_pyramid : "Key for entrance to jail3" [] @PointClass base(Items) = key_red_key : "normal door key - red" [] // ----Trigger_Hurt---- // Not only used by WF code, so i added all WF only keys to the bottom and put WF in front of them @SolidClass base(Appearflags, Targetname) color(128 128 128) = trigger_hurt : "Hurts on Contact" [ spawnflags(Flags) = [ 1 : "Start Off" : 0 2 : "Toggle" : 0 4 : "Silent" : 0 8 : "No Protection" : 0 16 : "Slow hurt" : 0 ] dmg(integer) : "Damage" : 5 wf_team(choices) : "WF Team Activation" : 0 = [ 0 : "Both Teams" 1 : "Red Team Only" 2 : "Blue Team Only" ] ] // ----Trigger Multiple---- // Not only used by WF code, so i added all WF only keys to the bottom and put WF in front of them @SolidClass base(trigger_once) = trigger_multiple : "Multiple fire trigger" [ spawnflags(Flags) = [ 1 : "Monster" : 0 2 : "Not Player" : 0 ] wait(integer) : "Seconds between triggers" : 0 // -WF code entity flags only- wf_team(choices) : "WF Team Activation" : 0 = [ 0 : "Both Teams" 1 : "Red Team Only" 2 : "Blue Team Only" ] bonustype(choices) : "WF Point Type Awarded" : 0 = [ 0 : "None" 1 : "Team Awarded Caps" 2 : "Player Awarded Frags" ] bonusvalue(integer) : "WF Amount Awarded" : 0 ] // ----Trigger_Push---- // Not only used by WF code, so i added all WF only keys to the bottom and put WF in front of them @SolidClass base(Appearflags) color(128 128 128) = trigger_push : "Push trigger" [ spawnflags(Flags) = [ 1 : "Push Once" : 0 ] speed(integer) : "Speed of push" : 1000 wf_team(choices) : "WF Team Activation" : 0 = [ 0 : "Both Teams" 1 : "Red Team Only" 2 : "Blue Team Only" ] ] // ----Misc_Teleporter---- // Not only used by WF code, so i added all WF only keys to the bottom and put WF in front of them // "place teleporter units 10 units into a brush to get rid of teleport pad" @PointClass base(Appearflags, Targetname) color(255 0 0) size(-32 -32 -24, 32 32 -16) = misc_teleporter : "Teleporter" [ target(string) : "Teleport Destination" wf_team(choices) : "WF Team Activation" : 0 = [ 0 : "Both Teams" 1 : "Red Team Only" 2 : "Blue Team Only" ] ] // ----Item_Flagreturn---- @PointClass color(255 128 0) size(-16 -16 -24, 16 16 -16) base(Appearflags, Target, Targetname) = item_flagreturn_team1 : "Red Team Flag Return" [] @PointClass color(255 128 0) size(-16 -16 -24, 16 16 -16) base(Appearflags, Target, Targetname) = item_flagreturn_team2 : "Blue Team Flag Return" [] // ----Misc_Ctf_Banner---- @PointClass base(Appearflags) color(0 128 255) size(-4 -72 0, 4 72 246) = misc_ctf_banner : "Flowing banner (origin at bottom, 128 tall)" [ spawnflags(Flags) = [ 1 : "Blue Team" : 0 2 : "Soviet Flag" : 0 4 : "US Flag" : 0 8 : "Russian Flag" : 0 16 : "Blue Stars Flag" : 0 ] ] @PointClass base(misc_ctf_banner) size(-4 -38 0, 4 38 123) = misc_ctf_small_banner : "Flowing banner (origin at bottom)" [ spawnflags(Flags) = [ 1 : "Blue Team" : 0 2 : "Soviet Flag" : 0 4 : "US Flag" : 0 8 : "Russian Flag" : 0 16 : "Blue Stars Flag" : 0 ] ] // !!!!!DO NOT USE!!!!! // =NOT AN ENTITY!!! ONLY USED TO MAKE A SEPERATION ON THE ENTITY LIST= // !!!!!DO NOT USE!!!!! @PointClass base(Appearflags) color(255 0 0) size(-32 -32 -32, 32 32 -32) =______________ : "Entity List Seperator, don't use!" [] // everthing below ______________ on the entity menu in WorldCraft does not use special WF values.