Check out Half-Life Re-imagined competition results!
Check out Skewing textures in Hammer, our newest tutorial!
Say hello to torekk, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

13

Cobalt

30

Turquoise

8

Cyan

10

Royal

6

Teal

3

Onliners

2 mins

Dimbeak

12 mins

Qwertyus

16 mins

Admer456

24 mins

ciba43

27 mins

Bruce

30 mins

The Mad Carrot

32 mins

Screamernail

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

EXAMPLE func_tanks CS:S!

Map Vault > Example Maps

map screenshot

star star star star star
(1 votes)

[More Screenshots]

Avatar

By Captain Terror (See more)
13th May, 2011

Counter-Strike: Source
1.06MB - RMF, BSP
3025 views
460 downloads
9 comments

Last edited: 1st December, 2011

download

Fullscreen

This Exammple map will show you how to make 3 different mouse-controlled guns/turrets in Counter-Strike: Source, resembling the old func_tanks from CS 1.6.

Edit 052311:
Upgrades!
-Combine Machine gun NOW works in MP game with bots. Used a different parenting mehthod using a logic_measure_movement, where you place an env_spark on the same location as the info target, parent the env_spark to the gun, and then you use Logic_measure_movemement to use the env_spark to measure the location of the info_target. This workaround was brought to my attention by [frank] at interlopers. Thanks [frank]!
-Added trigger_hurt to Combine Masheen gun, so now it does damage! =)
-Added sound, and muzzleflash to Combine Masheen gun, following Waffle Turret Tutorial!

Rooom for Improvement
-Trigger_hurt for Combine Masheen Gun "times out" after like 4-5 seconds, in which case you simply take your finger off the mouse button and repress. Don't know why this happens, since it is set to Disble ONLY on UnpressedAttack.. =/
-get shell ejection to work on Combine Masheen Gun
-extending the range of the minigun
-help increasing the rate of fire of the 105mm cannon
-sometimes, the 105mm cannon bullets "bounce" off targets before exploding. Setting the flag "Break immediately on physics" solves this problem, but then, cannon rounds do no damage fsr..
-Would like to figure out how to "point" the turrets at a different direction than "east" once it spawns.


Note: this map is meant to be played in Counter-Strike: Source, but i use materials and models from HL2. All the content is included in the BSP using PackBSP, so if you needed to, you could extract the textures/models from it (when editing the vmf). DEVELOPMENT texture by Rimrook, and CT_DEV textures from my 3D palette based on that same texture by Rim

More Screens
1
2
3
4
5
6
7

Minigun and 105mm Cannon
The 105mm Cannon and Minigun are built by EnnergyFilms. I modified them slightly improving the prefabs a bit(still far from done), and parenting the func_physbox to a base rather than being parented/measured by a trigger_multiple. He has downloads for the original prefabs in the full comments.

The 105mm Cannon's controls are a bit buggy, but they work fairly ok. I'm also trying to improve the explosive attributes of the shells, to make them more consistent in their destructive capability. Another thing i would like to add this is to make the shells rapid-fire.

The minigun works pretty good but has a limited range fsr.

If you have any ideas on how to make these better, please let me know!

Combine Masheen gun
This one I built from scratch, following a video tutorial by TopHattWaffle. (no example download available) Also i learned how to add sound, shell ejection, and a muzzle flash from Waffle's Waffle Turret tutorial. Thanks TophattWaffle!

This mouse-controlled turret by waffle, will behave almost exactly to the old func_tanks from cs 1.6!

A couple issues: I can't get the shell ejection to work and also, the trigger hurt will "time out" after like 4-5 seconds fsr. (works again on repressing the mouse button).
***

I plan on using all these mouse-controllable turrets for care packages in my upcoming nuketown map. the minigun will be mounted on a moving Blackhawk helicopter and the rocket launcher will be meant to simulate a 105MM cannon on a circling AC-130 gunship.
***


CHANGELOG

EDIT 051811:
Upgrades and fixes
- combine masheen gun parenting issue SOLVED. Manually parenting info_target to gun doesn't work. Instead, a logic_auto(OnSpawnMap - <info target name> - setparent - gun), solves the parenting glitch. (this is how waffle said to do it in the tutorial, but i screwed it up by ALSO manually parenting the info_target to the gun.

The above parenting method only works in a sp game loaded from the console. Once you create a server and add bots, it won't work anymore. Another workaround forthcoming.

Still Needs Work
-extending the range of the minigun
-help increasing the rate of fire of the 105mm cannon
-sometimes, the 105mm cannon bullets "bounce" off targets before exploding. Setting the flag "Break immediately on physics" solves this problem, but then, cannon rounds do no damage fsr..
-need to parent trigger_hurt to combine masheen gun. (env_gunfire does no damage by itself)


EDIT 051411:
Multiple Changes
-improved destructive consistency of 105mm cannon
-improved 105mm cannon model
-added spawns to test func_tank effectiveness against bots and destructible func_phsbox blocks
-fixed "make_triangles:calc_triangle_representation: Cannot convert" error
-PackBSP'd custom content to bsp(for those without HL2)

Still Needs Work
-extending the range of the minigun
-info_target parenting problem with [i]combine masheen gun
. (gun shoots at origin no matter what)
-help increasing the rate of fire of the 105mm cannon

Comments

avatar Huseyn26 says: star star star 14th May 2011, 08:19 AM
The model are good.But the model foot is not good.Fix it
avatar Madcow says: 14th May 2011, 10:17 AM
@Huseyn26: It's not about the looks, it's about the setup. This is an example, they aren't judged by visual quality.

I'm looking forward into seeing this in your nuketown map :)
avatar Huseyn26 says: 14th May 2011, 10:29 AM
just i say problems
avatar Suparsonik says: 15th May 2011, 15:57 PM
just you idiot
avatar Striker says: 18th May 2011, 19:11 PM
Joebama, he can't english good at him. Please understand. He progress in future.
avatar Suparsonik says: 18th May 2011, 19:18 PM
lol'd
avatar Skals says: 27th May 2011, 09:47 AM
Striker you mok him not good. He not good englis you need understand.
avatar Huseyn26 says: 30th May 2011, 13:30 PM
hey joebama,what you think?you are very clever?(sure this is not true)
avatar Suparsonik says: 30th May 2011, 16:43 PM
what you think? i am very clever.
You must be logged in to comment.