Re: [hlcoders] goldsrc other clients hp in hud

2014-05-15 Thread Matas Lesinskas
ty 2014-05-15 11:10 GMT+03:00 Tony omega Sergi omegal...@gmail.com: curstate.health not pev-health ie: for (int i = 1; i MAX_PLAYERS; i++) { cl_entity_t *pl = gEngfuncs.GetEntityByIndex(i); if ( pl pl-player ) { ALERT( at_console, [%s]

Re: [hlcoders] goldsrc other clients hp in hud

2014-05-16 Thread Matas Lesinskas
; a MAX_PLAYERS; i++) { cl_entity_t *pl = gEngfuncs.GetEntityByIndex(i); if ( pl pl-player ) { sprintf(temp11,%s %i, g_PlayerInfoList[i].name, pl-curstate.health ); gViewPort-m_pHpmeniu-m_pPlayer1_hp-setText(temp11); } } //code test 2014-05-15 19:33 GMT+03:00 Matas Lesinskas peon...@gmail.com: ty

[hlcoders] goldsrc push zombie away

2014-08-30 Thread Matas Lesinskas
any ideas how to make weapon to push zombie away. I think somethink like this, but how to target zombie, not (m_pPlayer) m_pPlayer-pev-velocity = m_pPlayer-pev-velocity + gpGlobals-v_forward * 100; ___ To unsubscribe, edit your list preferences, or

Re: [hlcoders] goldsrc push zombie away

2014-08-30 Thread Matas Lesinskas
it looks like you need to do a trace from your weapon in the direction that you're facing and then you can use the edict_t* in the trace result. Check out what CCrowbar::Swing does. On 30 August 2014 23:26, Matas Lesinskas peon...@gmail.com wrote: any ideas how to make weapon to push zombie

Re: [hlcoders] goldsrc push zombie away

2014-08-30 Thread Matas Lesinskas
now it work :D ty 2014-08-31 2:48 GMT+03:00 Matas Lesinskas peon...@gmail.com: TraceResult tr; UTIL_MakeAimVectors( pev-angles ); Vector vecStart = pev-origin; vecStart.z += pev-size.z * 0.5; Vector vecEnd = vecStart + (gpGlobals-v_forward * 100 ); UTIL_TraceHull( vecStart, vecEnd

[hlcoders] I need to program stereo .wav in goldsrc any ideas? I want to change old mono to sterio, but I dont know how.

2014-12-29 Thread Matas Lesinskas
I need to program stereo .wav in goldsrc any ideas? I want to change old mono to sterio, but I dont know how. I heard about fmod, any Ideas how implement it. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit:

Re: [hlcoders] goldsrc topcolor bottomcolor on monsters

2015-04-21 Thread Matas Lesinskas
- look for the variables topcolor and bottomcolor if you can't find it). On 21 April 2015 at 18:18, Matas Lesinskas peon...@gmail.com wrote: were can I find topcolor bottomcolor skin coloring code in hlsdk(goldsrc hl code), I want to make hl monsters with random skin colors like in left 4 dead 2

[hlcoders] ragdoll physics problem in goldsrc

2015-04-24 Thread Matas Lesinskas
Hi, I want to make ragdoll physics in goldsrc somehow :), were can I find bones and hitboxes coordinates? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit:

[hlcoders] do anyone know cs 1.6 FireBullets3 client side code

2015-07-25 Thread Matas Lesinskas
do anyone know cs 1.6 FireBullets3 client side code? what should i write inside Vector CBaseEntity::FireBullets3 (Vector vecSrc, Vector vecDirShooting, float flSpread, float flDistance, int iPenetration, int iBulletType, int iDamage, float flRangeModifier, entvars_t *pevAttacker, bool bPistol, int

Re: [hlcoders] hi I have a question about players inventory in goldsrc

2015-07-13 Thread Matas Lesinskas
game to read, when other level loaded ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

[hlcoders] hi I have a question about players inventory in goldsrc

2015-07-13 Thread Matas Lesinskas
hi I have a question about players inventory in goldsrc. How can I get every player inventory, weapons, ammo, and player name(I think I know how to get player name), I will write all data to text file and I will use it later. ___ To unsubscribe, edit