Hey how's it going,

I'm working on a sort of projectile code, and way before i begun I had
decided that temporary entities would be able
to solve it all, unfortunately, they haven't.  this projectile isn't using a
model, I want it to use a sprite.  Since
entities only have models to use, I was on trying TE_PROJECTILE.  NOw since
the engine doesn't expose how it uses this
exactly, I assume, it simply uses the engine functions spr_draw* on the
origin and velocity I set, am I wrong ? anyways
I wan't to use additive sprites, Not Alpha test or normal sprite's whatever
it uses, so does anyone have any recommendations on this ? I as well have 2
other problems with this temporary entitie use, it seems to spin me around
in
a circle while im in third person view *on ....the x axis ? the pitch ?,
horizontal :)* and when i go into first person so i can actualyl see it
without wanting to hurl from the disoriented spin, the sprite appears later
in front of me instead of like coming from the attachment piece i.e. the end
of my weapon. I believe it's because I create the tempent in a later think,
but when i try using it in spawn, It appears then dissapears immediately, it
displays them all the way if i aim at certain angles however, like ne se sw
nw of my position but not directly, north south east or west (more of a 45
degree angle in those directions sort of, sometimes it does and doesn't in
those sides) this boggles me.
--sr_kiblast.cpp--
...
        MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );
                WRITE_BYTE( TE_PROJECTILE );
                WRITE_COORD(pev->origin.x);
                WRITE_COORD(pev->origin.y);
                WRITE_COORD(pev->origin.z);
                WRITE_COORD(pev->velocity.x);
                WRITE_COORD(pev->velocity.y);
                WRITE_COORD(pev->velocity.z);
                WRITE_SHORT(m_iKiBlast );
                WRITE_BYTE( 15 ); // life
                WRITE_BYTE( 5 );  // width
        MESSAGE_END();
...
--End of sr_kiblast.cpp--
now honestly, my kiblast and it's temporary launcher are a mere cut and
paste hack job of the rpglauncher and its rocket for now,  so all the aiming
and velocity settings and such are gathered *except I sped up velocity and
removed increments
 over a certain amount of time, and removed other non needed pieces* so any
help on these situations would be appreciated.
thanks,


Pj Bean (AKA Nakusku)
Lead coder of Sr(http://www.sr.flagrun.net)


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to