Trying to make an object move the way the chair does. (by run into, no preset paths)


(_lagzOr_) #1

My map has a giant chess set http://i.imgur.com/NDIYRgL.jpg (not finished) that will eventually look something like this. http://i.imgur.com/7b95yzv.jpg

My question is how do I make it so that I can push the 32 chess pieces individually, the same way the chair moves when pushed.

Was told by kimiahk to come here for help from:


(Destroy666) #2

I don’t think you can. Only several predefined entities have that ability IIRC.


(hexfate) #3

I believe you can make it work by using one of:

props_box_32
props_box_48
props_box_64

Then either attachtotag your chess piece on top of the box entity or remapshader props_box texture to something invisible and then attach your chess piece with offset, so it appears on the ground.

You can generate dummy tag on the same page: http://games.chruker.dk/enemy_territory/md3ttd.php

This method allows arbitrary moves but there’s no way to verify the validity of those moves as far as I know.


(KeMoN) #4

Maybe you could also try the changemodel paramter on those chairs? Just a wild guess, though.


(Mateos) #5

I suspect this command to only work with misc_gamemodel entity, as misc_model is compiled inside the BSP (excepted if you give a specific argument to the compiler iirc), but only reading the source code can confirm this ^^’

I thought about this:

  • misc_gamemodel using the chair model.
  • 4 trigger_multiple around the misc_gamemodel, to detect from which side a player approches the entity.
  • A timer to check periodically if the state of these entities has changed; If so, move the entity.

(Teuthis) #6

@Mateos
This would work only once but since the trigger multiple do not move with the object you will get a funny move the second time you activate the trigger. I am afraid you somehow need to attach a tag on the objective and the trigger has to move with the object. But even then the object will move in only 4 directions, better than nothing but not really arbitary


(ailmanki) #7

http://forums.warchest.com/showthread.php/17225-new-map-shield-b1

isbowhten has made a map where a shield is following you, I suppose you can use the technics he used for your chess map.


(Teuthis) #8

Here a Quote from isbowten

on shield has about (did not count them) 20 entities and about 20 attachtotag commands …
rofl
at least … it is very simple.
it follows you in steps only.
trigger muliples are around you, attached to a tag in the middle of them…
another script mover , not attached is movedd with setposition to that multiples origin which is a point of the circle the multiples are…
(they are built in a 8sided polygon, and ofc have not the middle as origin but a point on an imaginary circle)
then the while shield follows the script mover that has been moved with setposition.

so a simple following thing is made of:

  • multiples around you (i wanna improve that anytime, make some bots that kill you with a ball around the center instead of a circle and 2 floors)
  • attach the multiples to a tag in the middle of them
  • via script a script mover or any other entity is moved to that multiple you activated with setposition
  • the script mover carrying the tags follows (btw: with gotomarker) that entity => shield follows you or whatever you attached.

ah i really dont know why everybody wants it so detailed. i will give it a try…
good i always call maps b1 first ^^

i also have 3 other ideas i could do with that concept but then i think i need a good designer.
just tell me if you wanna do a simple kind of “age of empires” or a dynymite yourself with a bomb belt and “remote control” for the belt in a special area

edit: i can do a much simpler version of something that follows you… so no shield, only a square above your head or so. (only by request)

If 20 entities are needed to make this damn Chair move I Personally Would Prefer Going an easier Way.