Join us on our TWC Discord channel

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Adding tags to model
#1
What are tags?

Tags are places where you can attach something, for example objective in truck or mounted mg in tank. They are used to keep attached thing moving together with model.
Another (funny) usage of tags can be found here: http://www.splashdamage.com/forums/showt...ght=shield - as you see they can be attached to a player too

How to add them?

The simpliest way to add tags is to download Q3 Model tool: http://www.wolffiles.de/index.php?filebase&fid=1864

Open your .md3 model in it.

Then click on Tags tab. Change tagname to tag_xxx
Now you need to know origin of tag. It needs to be in the middle of origin of the brush/entity you want to attach.
You can easily find it out by creating a new map in Radiant where you need to put your model in place in which his origin will be coordinated (0 0 0). Put also the entity/brushes in place you want to attach them. It should be like this:
[Image: 34743036.png]
I selected in 3D view origin brush of func_door. Now you should zoom in 2D view and find the middle of it (in this case -4 -60 75). Type these coordinates as X Y Z of tag. They need to be accurate, otherwise your tag will be in wrong place.

When you'll finish adding tags, save them as .tag file to location where your model is.

Now, add the entities/brushes which should be attached to your model if you haven't done that yet. After that, click N to give them scriptname and targetname.

Last thing to do is script. It should look like this:
Code:
door1 //scriptname of attached entity { spawn { wait 500 attachtotag truck tag_door1 //truck = mover scriptname, tag_door1 is the name of tag } }

Don't forget to put .tag file to pk3.

Tutorial written by Destroy666. If you want to copy it to your site, please include the author and link to this thread.
Spoiler[spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler]<object classid="clsidBiggrin27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="300">
<param name="movie" value="http://z0r.de/L/z0r-de_3068.swf" />
<param name="quality" value="high" />
<embed src="http://z0r.de/L/z0r-de_3068.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="300"></embed>
</object>
[/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler]
Reply


Messages In This Thread
Adding tags to model - by Destroy666 - 07-03-2012, 12:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tutorial Adding new entities to Radiant Destroy666 0 3,210 26-02-2012, 04:20 PM
Last Post: Destroy666

Forum Jump:


Users browsing this thread: 1 Guest(s)