Posts | ||
---|---|---|
monsters using crossbows? | Locked | |
Thread Options | ||
Apr 18 2004 Anchor | ||
can anyone help me to get my monster to shoot crossbow bolts, i have it shooting rpg rounds, but crossbows just wont work. CCrossbowBolt::BoltShoot( pev, vecShootOrigin, angDir ); it says now i've included BoltShoot in Crossbow.cpp as: static CCrossbowBolt *BoltShoot( entvars_t *pevOwner, Vector vecOrigin, Vector vecAngles ); and the subroutine looks like: CCrossbowBolt *CCrossbowBolt::BoltShoot( entvars_t *pevOwner, Vector vecOrigin, Vector vecAngles ) pBolt->pev->classname = MAKE_STRING("bolt"); but it still won't work. |
||
|
Apr 18 2004 Anchor | |
What game is this for? Plus you've simply not defined what a 'CCrossbowBolt' or 'BoltShoot' actually is - surely there's more code than this? |
||
|
Apr 18 2004 Anchor | |
It's for Half-Life -- < insert subject games here >
|
||
Apr 18 2004 Anchor | ||
yes, it's for half life |
||
|
Apr 18 2004 Anchor | |
lol, I'm not familiar with HL at all - but is there any more code that has been edited? |
||
Apr 18 2004 Anchor | ||
no, that's all the new code i think... |
||
|
Apr 18 2004 Anchor | |
I think you're going to need to specify what is firing the bolt. - Edited By ambershee On Sun 18th, Apr 2004 @ 11:08:47am |
||
Apr 18 2004 Anchor | ||
i think that's what pevOwner and ShootOrigin are for |
||
|
Apr 18 2004 Anchor | |
its better to ask the people at VERC then the PHL guys. --
|
||
Apr 20 2004 Anchor | ||
fixed it! CCrossbow *CCrossbow::ShootBolt( entvars_s *pOwner, Vector vecOrigin, Vector vecAngles ) i had to set a velocity for the bolt, but that was easy enough. |
||
Apr 20 2004 Anchor | ||
oooh... that's bad.... if you copy and paste this code, for god's sake replace the smiley with colon S |
||
|
Apr 21 2004 Anchor | |
In future you can put code in a special box like so by using the [ CODE ] tag !
useful isn't it not? |
||
|
Apr 21 2004 Anchor | |
cool :o
-- Nothing. |
||
Apr 21 2004 Anchor | ||
interesting.. |
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.