Game Development Community

Crossbow Not Rendering

by Skylar Kelty · in Torque Game Engine · 05/07/2006 (12:06 pm) · 7 replies

Hi,
All of the sudden my crossbow is not showing up in 1st person view (in 3rd person its there) so maybe the offset's wrong? Anyway where do I change the offset value or how else do I fix this?
I've looked in:
weapon.cs
crossbow.cs

Thanks

#1
05/07/2006 (12:13 pm)
In the image datablock for you crossbow.cs look at the value eyeOffset. If it's not there, than means it's going to show up in first person wherever it is in third person, which probably isn't setup to be usually visible unless you've thought it out beforehand (though I think it is a good way to do things ultimately).
#2
05/07/2006 (12:47 pm)
That doesnt fix it :( thanx anyway
#3
05/10/2006 (9:23 am)
*bump* still need help on this
#4
05/10/2006 (9:27 am)
This is a long shot but in client/prefs.cs there is the following setting:
$pref::Player::renderMyItems = "1";
If this is set to false, ie "0", then no weapon is rendered in 1st person view.
#5
05/10/2006 (9:31 am)
Another possibility:

If you recently changed or modified your player model you might not have a big enough bounding box. If the bounding box is too small then weapons will be 'clipped' out of view. There is also an overide for this in the player.cs script. It's in the main playerbody datablock, basically it's an x y z coordinate which you might have adjusted and made too small.
datablock PlayerData(PlayerBody)
{
...
   boundingBox = "0.6 1.0 1.4";
...
}
#6
05/10/2006 (11:58 am)
@ Tim - That was it (first post)! Thankyou so much!
#7
05/10/2006 (12:02 pm)
Cool, glad you got it working. :)