Mon, 25 Jul 2016 05:28:34 -0600
- Fix sniper logic
- Add sniper reload sound and delay
- Add round prep credits
ttt_canvas.log | file | annotate | diff | comparison | revisions | |
ttt_canvas.vmf | file | annotate | diff | comparison | revisions |
--- a/ttt_canvas.log Mon Jul 25 03:34:46 2016 -0600 +++ b/ttt_canvas.log Mon Jul 25 05:28:34 2016 -0600 @@ -24,14 +24,14 @@ Building Faces...done (0) Chop Details...done (0) Find Visible Detail Sides... -Merged 1710 detail faces...done (0) -Merging details...done (1) +Merged 1710 detail faces...done (1) +Merging details...done (0) FixTjuncs... PruneNodes... WriteBSP... -done (2) +done (3) writing E:\mapsrc\sync\2015\foreguard\ttt_canvas.prt...Building visibility clusters... -done (1) +done (0) Creating default LDR cubemaps for env_cubemap using skybox materials: skybox/train_hdr*.vmt ! Run buildcubemaps in the engine to get the correct cube maps. @@ -42,13 +42,13 @@ Finding lightmap sample positions... Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10 Building Physics collision data... -done (2) (1990502 bytes) +done (2) (1991113 bytes) Placing detail props : 0...1...2...3...4...5...6...7...8...9...10 Compacting texture/material tables... -Reduced 11498 texinfos to 4579 -Reduced 892 texdatas to 733 (46450 bytes to 39150) +Reduced 11497 texinfos to 4578 +Reduced 891 texdatas to 732 (46428 bytes to 39128) Writing E:\mapsrc\sync\2015\foreguard\ttt_canvas.bsp -29 seconds elapsed +27 seconds elapsed ================== VVIS ================== @@ -60,11 +60,11 @@ reading e:\mapsrc\sync\2015\foreguard\ttt_canvas.prt 1904 portalclusters 5030 numportals -0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 1335 visible clusters (0.46%) -Total clusters visible: 288693 +0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 1334 visible clusters (0.46%) +Total clusters visible: 288692 Average clusters visible: 151 Building PAS... Average clusters audible: 521 visdatasize:359053 compressed from 913920 writing e:\mapsrc\sync\2015\foreguard\ttt_canvas.bsp -49 seconds elapsed +40 seconds elapsed
--- a/ttt_canvas.vmf Mon Jul 25 03:34:46 2016 -0600 +++ b/ttt_canvas.vmf Mon Jul 25 05:28:34 2016 -0600 @@ -2,7 +2,7 @@ { "editorversion" "400" "editorbuild" "6440" - "mapversion" "9044" + "mapversion" "9072" "formatversion" "100" "prefab" "0" } @@ -374,13 +374,13 @@ "bSnapToGrid" "1" "bShowGrid" "1" "bShowLogicalGrid" "0" - "nGridSpacing" "2" + "nGridSpacing" "8" "bShow3DGrid" "0" } world { "id" "1" - "mapversion" "9044" + "mapversion" "9072" "classname" "worldspawn" "detailmaterial" "detail/detailsprites" "detailvbsp" "detail.vbsp" @@ -115979,6 +115979,71 @@ } solid { + "id" "2016262" + side + { + "id" "373432" + "plane" "(-1440 -1024 176) (-1440 -968 176) (-1344 -968 176)" + "material" "TOOLS/TOOLSNODRAW" + "uaxis" "[1 0 0 0] 0.25" + "vaxis" "[0 -1 0 0] 0.25" + "rotation" "0" + "lightmapscale" "16" + "smoothing_groups" "0" + } + side + { + "id" "373431" + "plane" "(-1440 -1024 112) (-1440 -968 176) (-1440 -1024 176)" + "material" "TOOLS/TOOLSNODRAW" + "uaxis" "[0 -1 0 0] 0.25" + "vaxis" "[0 0 -1 0] 0.25" + "rotation" "0" + "lightmapscale" "16" + "smoothing_groups" "0" + } + side + { + "id" "373430" + "plane" "(-1344 -1024 112) (-1344 -1024 176) (-1344 -968 176)" + "material" "GLITCHVID/PLASTER/CLEANPLASTER_WHITE" + "uaxis" "[0 1 0 0] 0.25" + "vaxis" "[0 0 -1 0] 0.25" + "rotation" "0" + "lightmapscale" "16" + "smoothing_groups" "0" + } + side + { + "id" "373429" + "plane" "(-1344 -1024 112) (-1440 -1024 112) (-1440 -1024 176)" + "material" "TOOLS/TOOLSNODRAW" + "uaxis" "[1 0 0 0] 0.25" + "vaxis" "[0 0 -1 0] 0.25" + "rotation" "0" + "lightmapscale" "16" + "smoothing_groups" "0" + } + side + { + "id" "373428" + "plane" "(-1440 -1024 112) (-1344 -1024 112) (-1344 -968 176)" + "material" "GLITCHVID/PLASTER/CLEANPLASTER_WHITE" + "uaxis" "[-1 0 0 0] 0.25" + "vaxis" "[0 -0.658505 -0.752577 0] 0.25" + "rotation" "0" + "lightmapscale" "4" + "smoothing_groups" "0" + } + editor + { + "color" "0 225 126" + "visgroupshown" "1" + "visgroupautoshown" "1" + } + } + solid + { "id" "254" side { @@ -290132,71 +290197,6 @@ "visgroupautoshown" "1" } } - solid - { - "id" "2016262" - side - { - "id" "373432" - "plane" "(-1440 -1024 176) (-1440 -968 176) (-1344 -968 176)" - "material" "TOOLS/TOOLSNODRAW" - "uaxis" "[1 0 0 0] 0.25" - "vaxis" "[0 -1 0 0] 0.25" - "rotation" "0" - "lightmapscale" "16" - "smoothing_groups" "0" - } - side - { - "id" "373431" - "plane" "(-1440 -1024 112) (-1440 -968 176) (-1440 -1024 176)" - "material" "TOOLS/TOOLSNODRAW" - "uaxis" "[0 -1 0 0] 0.25" - "vaxis" "[0 0 -1 0] 0.25" - "rotation" "0" - "lightmapscale" "16" - "smoothing_groups" "0" - } - side - { - "id" "373430" - "plane" "(-1344 -1024 112) (-1344 -1024 176) (-1344 -968 176)" - "material" "GLITCHVID/PLASTER/CLEANPLASTER_WHITE" - "uaxis" "[0 1 0 0] 0.25" - "vaxis" "[0 0 -1 0] 0.25" - "rotation" "0" - "lightmapscale" "16" - "smoothing_groups" "0" - } - side - { - "id" "373429" - "plane" "(-1344 -1024 112) (-1440 -1024 112) (-1440 -1024 176)" - "material" "TOOLS/TOOLSNODRAW" - "uaxis" "[1 0 0 0] 0.25" - "vaxis" "[0 0 -1 0] 0.25" - "rotation" "0" - "lightmapscale" "16" - "smoothing_groups" "0" - } - side - { - "id" "373428" - "plane" "(-1440 -1024 112) (-1344 -1024 112) (-1344 -968 176)" - "material" "GLITCHVID/PLASTER/CLEANPLASTER_WHITE" - "uaxis" "[-1 0 0 0] 0.25" - "vaxis" "[0 -0.658505 -0.752577 0] 0.25" - "rotation" "0" - "lightmapscale" "4" - "smoothing_groups" "0" - } - editor - { - "color" "0 225 126" - "visgroupshown" "1" - "visgroupautoshown" "1" - } - } group { "id" "4422" @@ -712139,6 +712139,8 @@ "OnMapSpawn" "tonemapper,SetBloomScale,0.5,0,-1" "OnMapSpawn" "tonemapper,SetAutoExposureMin,1.40,0,-1" "OnMapSpawn" "tonemapper,SetTonemapRate,0.25,0,-1" + "OnMultiNewRound" "ttt_npcsniper,Kill,,0,-1" + "OnMapSpawn" "ttt_npcsniper,Kill,,0,-1" } "origin" "48 544 88" editor @@ -802971,7 +802973,7 @@ "shielddistance" "64" "shieldradius" "48" "shootZombiesInChest" "0" - "sleepstate" "3" + "sleepstate" "0" "spawnflags" "1925636" "targetname" "ttt_npcsniper" "wakeradius" "0" @@ -802994,15 +802996,11 @@ "RemoveOnPress" "0" "spawnflags" "0" "targetname" "ttt_sniper_button" - "wait" "120" + "wait" "0" connections { - "OnPressed" "ttt_npcsniper,Wake,,0,-1" - "OnPressed" "ttt_sniper_timer,Enable,,0,-1" - "OnPressed" "dmgown04,SetActivatorAsDamageOwner,,0,-1" - "OnPressed" "ttt_sniper_text,Display,,0,-1" - "OnPressed" "ttt_npcsniper_templatemaker,ForceSpawn,,0,-1" "OnPressed" "ttt_sniper_credits,TakeCredits,,0,-1" + "OnPressed" "ttt_sniper_button,Lock,,0,-1" } editor { @@ -804758,7 +804756,7 @@ "classname" "ttt_damageowner" "damager" "ttt_npcsniper" "killname" "Police Sniper" - "origin" "1720 224 388" + "origin" "1720 224 384" "targetname" "dmgown04" editor { @@ -831031,8 +831029,10 @@ "OnTimer" "ttt_npcsniper,Kill,,0,-1" "OnTimer" "ttt_sniper_timer,Disable,,0,-1" "OnTimer" "ttt_sniper_text_gone,Display,,0,-1" - } - "origin" "1720 208 388" + "OnTimer" "ttt_sniper_button_timer,Enable,,0,-1" + "OnTimer" "ttt_sniper_button_timer,ResetTimer,,0,-1" + } + "origin" "1720 208 384" editor { "color" "220 30 220" @@ -831049,7 +831049,7 @@ "message" "Policer Sniper has been called in" "receive" "3" "targetname" "ttt_sniper_text" - "origin" "1720 208 404" + "origin" "1720 208 400" editor { "color" "220 30 220" @@ -831066,7 +831066,7 @@ "message" "Police Sniper is gone" "receive" "3" "targetname" "ttt_sniper_text_gone" - "origin" "1720 192 404" + "origin" "1720 192 400" editor { "color" "220 30 220" @@ -831214,8 +831214,21 @@ "id" "2016622" "classname" "ttt_credit_adjust" "credits" "1" - "origin" "1720 224 404" + "origin" "1720 224 400" "targetname" "ttt_sniper_credits" + connections + { + "OnFail" "ttt_sniper_creditdeny,Display,,0,-1" + "OnFail" "ttt_sniper_button,Unlock,,0,-1" + "OnSuccess" "ttt_npcsniper_templatemaker,ForceSpawn,,0,-1" + "OnSuccess" "ttt_sniper_text,Display,,0,-1" + "OnSuccess" "dmgown04,SetActivatorAsDamageOwner,,0,-1" + "OnSuccess" "ttt_sniper_timer,Enable,,0,-1" + "OnSuccess" "ttt_sniper_timer,ResetTimer,,0,-1" + "OnSuccess" "ttt_sniper_enabletimer,Enable,,1,-1" + "OnSuccess" "ttt_sniper_alert,PlaySound,,0,-1" + "OnSuccess" "ttt_sniper_enabletimer,ResetTimer,,0,-1" + } editor { "color" "220 30 220" @@ -831389,13 +831402,186 @@ "logicalpos" "[0 6500]" } } +entity +{ + "id" "2027799" + "classname" "ttt_game_text" + "color" "255 0 0" + "message" "Not enough credits!" + "receive" "0" + "targetname" "ttt_sniper_creditdeny" + "origin" "1720 208 416" + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[500 -4268]" + } +} +entity +{ + "id" "2027851" + "classname" "logic_timer" + "RefireTime" "120" + "spawnflags" "0" + "StartDisabled" "1" + "targetname" "ttt_sniper_button_timer" + "UseRandomTime" "0" + connections + { + "OnTimer" "ttt_sniper_button,Unlock,,0,-1" + "OnTimer" "ttt_sniper_button_timer,Disable,,0,-1" + } + "origin" "1720 224 416" + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[500 -4268]" + } +} +entity +{ + "id" "2038738" + "classname" "ttt_map_settings" + "angles" "0 0 0" + "cbar_buttons" "0" + "cbar_doors" "0" + "cbar_other" "0" + "origin" "6 514 90" + "propspec_allow_named" "0" + "targetname" "ttt_map_settings" + connections + { + "RoundPreparation" "ttt_credits1,Display,,0.1,-1" + "RoundPreparation" "ttt_credits2,Display,,0,-1" + "RoundPreparation" "ttt_credits3,Display,,1,-1" + "MapSettingsSpawned" "ttt_npcsniper,Kill,,0,-1" + "RoundPreparation" "ttt_npcsniper,Kill,,0,-1" + "RoundEnd" "ttt_npcsniper,Kill,,0,-1" + } + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[0 0]" + } +} +entity +{ + "id" "2038784" + "classname" "ttt_game_text" + "color" "255 255 255" + "message" "By Glitchvid" + "receive" "1" + "targetname" "ttt_credits2" + "origin" "-32 464 88" + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[500 -4268]" + } +} +entity +{ + "id" "2038802" + "classname" "ttt_game_text" + "color" "252 250 148" + "message" "Open source VMF will be avalible soon" + "receive" "1" + "targetname" "ttt_credits3" + "origin" "-16 464 88" + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[500 -4268]" + } +} +entity +{ + "id" "2038856" + "classname" "ttt_game_text" + "color" "255 255 255" + "message" "TTT Canvas - Version 143 BETA" + "receive" "1" + "targetname" "ttt_credits1" + "origin" "-48 464 88" + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[500 -4268]" + } +} +entity +{ + "id" "2039079" + "classname" "ambient_generic" + "cspinup" "0" + "fadeinsecs" "0" + "fadeoutsecs" "0" + "health" "10" + "lfomodpitch" "0" + "lfomodvol" "0" + "lforate" "0" + "lfotype" "0" + "message" "NPC_Sniper.Reload" + "pitch" "100" + "pitchstart" "100" + "preset" "0" + "radius" "1043" + "spawnflags" "48" + "spindown" "0" + "spinup" "0" + "targetname" "ttt_sniper_alert" + "volstart" "0" + "origin" "1696 224 422.156" + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[0 500]" + } +} +entity +{ + "id" "2039159" + "classname" "logic_timer" + "RefireTime" ".4" + "spawnflags" "0" + "StartDisabled" "0" + "targetname" "ttt_sniper_enabletimer" + "UseRandomTime" "0" + connections + { + "OnTimer" "ttt_npcsniper,EnableSniper,,0,-1" + "OnTimer" "ttt_sniper_enabletimer,Disable,,0,-1" + } + "origin" "1720 240 400" + editor + { + "color" "220 30 220" + "visgroupshown" "1" + "visgroupautoshown" "1" + "logicalpos" "[0 1000]" + } +} cameras { "activecamera" "0" camera { - "position" "[1191.57 39.6571 321.058]" - "look" "[1192.56 39.7616 321.009]" + "position" "[-32.135 474.034 124.58]" + "look" "[-32.4192 473.95 123.623]" } } cordon