Crossbow bolts 'n stuff are not really bullets.Look at existing code, in case of the bolts weapon_crossbow.cpp, to see how it's done.
On Fri, May 8, 2009 at 12:25 AM, James Keith <[email protected]> wrote: > I looked there, the only thing i found was > > info.m_iAmmoType = m_iAmmoType; > > Which isn't exactly helpful. > > Thanks, > James > ----- Original Message ----- > From: "Alexander Hirsch" <[email protected]> > To: "Discussion of Half-Life Programming" <[email protected] > > > Sent: Thursday, May 07, 2009 6:07 PM > Subject: Re: [hlcoders] Making the sentry turret fire other types of ammo? > > > > You probably have to change CNPC_FloorTurret::Shoot (it's in > > npc_turret_floor.cpp). > > > > On Thu, May 7, 2009 at 11:54 PM, James Keith <[email protected]> > wrote: > > > >> I can't find where the sentry defines the type of bullet it shoots out > in > >> it's source code. If i wanted to say, change the thing it shoots out to > >> crossbow ammo or shotgun ammo, how would i go about doing that? I know > >> SMOD > >> has turrets that fire crossbow bolts, lasers, and a bunch of other > stuff, > >> so > >> it's got to be possible. > >> > >> Thanks, > >> James > >> _______________________________________________ > >> To unsubscribe, edit your list preferences, or view the list archives, > >> please visit: > >> http://list.valvesoftware.com/mailman/listinfo/hlcoders > >> > >> > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

