Tank prefab (edit: this is not a prefab request :-)


(Chruker) #1

Hi

I have been working on a tank prefab, but I need some comments and feedback on it.

You can download it here: http://junk.chruker.dk/files/mapping/enemy_territory/tut_tank_09a1.zip

The feedback I need are unknown bugs and solutions to these know bugs:

  1. When reusing the waypoints to form a loop, the target_000 entity can only be found the first time.
  2. Clipping on the tank turret is non existing when the tank is damaged.
  3. The tank can’t be repaired from above.

My thoughs on these:

  1. Isn’t the biggest issue, but when I have set the wait key to -1 for the func_explosive why does its scriptblock then dissapear.
  2. Don’t know. The tank turret is a script_mover with the turret as model2 and brushes for the clipping.
  3. My thoughts about this are: The player ‘origin’ can’t get inside the TOI brush even when crawling. However if I extend the TOI brush, then you can repair it by standing on the back of the tank.

(Chruker) #2

Edit: Changed title

:bump:


(capslock trojan) #3

hmm i have taked a look at your tank prefab but your tank is screwed up
the machine gun aint on the tank’s body


(Chruker) #4

the machine gun aint on the tank’s body

In the game or in radiant?

In radiant they are supposed to be pulled apart.


(cementosje) #5

thank you for the tank :slight_smile:


(Genesis) #6

@ capslock…
the machine gun works just fine in game (have taken a look myself)


(capslock trojan) #7

the machine gun works just fine in game (have taken a look myself

it works fine but the machine gun is aint on the body of the tank :???: could it be beause of the script because it aint driving eather?? :???: :???:


(Chruker) #8

Here is a screenshot of how it should look in Radiant:

And here how it should look in the game:

Does the position of the tank in-game look like shot from Radiant?

If so, it could be that the script tries to assemble the tank before all of the entities has finished spawning.

Could you change the ‘wait 100’ to say ‘wait 400’ in the spawn routines of these entities:
tank1_turret
tank1_enabler_trigger
tank1_smoke
tank1_toi

And change the ‘wait 200’ to ‘wait 600’ in the spawn routine of this entity:
tank1_flash


(capslock trojan) #9

but it aint moving eather maybe its the script i have put wrong
im checking it out now but btw its is a verry usefull prefab :wink:


(capslock trojan) #10

Does the position of the tank in-game look like shot from Radiant?

yes

If so, it could be that the script tries to assemble the tank before all of the entities has finished spawning.

Could you change the ‘wait 100’ to say ‘wait 400’ in the spawn routines of these entities:
tank1_turret
tank1_enabler_trigger
tank1_smoke
tank1_toi
okay ill try it


(Chruker) #11

The .script file should be in the same directory as the .map and .bsp files (etmain/maps/)

You may also want to pull down the console and see if there are any errors when the map loads.


(capslock trojan) #12

m’kay il do that :d