Re: [hlcoders] Send Array of Entities to Client?
I had a CNetworkArray( EHANDLE, m_aAlerts, 25); and I could pass it through just fine, however, when assigning one of the slots, I would try: m_aAlerts.Set(1, new CEntityAlert() ); which failed, since technically it isn't an EHANDLE, and I couldn't cast it to an EHANDLE. I tried making an EHANDLE but I couldn't see how to define the entity type, when you do a network ehandle I could do CNetworkEHandle( CEntityAlert, m_aAlert); which worked great, casting works just fine, but I don't know in an array how to define the EHANDLE entity type. On Tue, Mar 20, 2012 at 1:23 AM, Saul Rennison wrote: > Can I ask why it failed? You should be able to send an array of handles no > problem. > > On Tuesday, March 20, 2012, Michael Kramer > wrote: > > Is it possible to send an array of entities to the client? > > I tried creating an array of EHandle, but assigning the slots proved > impossible. Is there a better way to send an array of entities to the > client side? > > > > > > -- > > > Kind regards, > *Saul Rennison* > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders > > > -- *Michael Kramer, Software Engineer & SEO Expert* http://www.siosphere.com | kra...@siosphere.com *[c] 801-530-9454* * * * * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
Re: [hlcoders] Picking up server-side ragdolls like a physics prop
I remember very clearly that when I created a video from a recorded demo, (in which I knew the ragdoll went particularly funny trajectory) that with the replay of the demo the trajectory was different every time, which was due that it was not server side decided upon, but by the client. After that, I called in a couple friends on the server dragged one to low health and then asked all of them to point where the ragdoll ended up for them after I shot the rocket. Each pointed to a entirely different spot after Ruined a lot of funny vids for me. > > From: Nick >To: Discussion of Half-Life Programming >Sent: Tuesday, 20 March 2012, 3:39 >Subject: Re: [hlcoders] Picking up server-side ragdolls like a physics prop > >Are u SURE that props are serverside? I always thought they are >clientside entities? I remember that empiresmod had a problem reviving >ragdolls > >On Sun, Mar 18, 2012 at 11:56 AM, Carlos Sotelo > wrote: >> Greetings, >> >> I've been trying to make the player be able to pick-up ragdolls. I already >> included FCAP_IMPULSE_USE for the CRagdollProp::ObjectCap. Thus making them >> "usable". However, I cannot get my custom use function for ragdolls to get >> called. >> >> In the class declaration for CRagdollProp i have: >> void OnUse(CBaseEntity *pActivator,CBaseEntity *pCaller, USE_TYPE useType, >> float value); >> >> for the DataDesc I have: >> DEFINE_USEFUNC( OnUse ), >> >> for its spawn function I added: >> SetUse(&CRagdollProp::OnUse); >> >> Its implementation right now is simply: >> >> void CRagdollProp::OnUse(CBaseEntity *pActivator,CBaseEntity *pCaller, >> USE_TYPE useType, float value) //Underhell >> { >> Msg("My OnUse Called \n"); >> } >> >> However, it does not get called ingame when i press E on a ragdoll (even >> though the use sound gets emitted). >> >> Any Ideas? >> >> ___ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders >> >> > >___ >To unsubscribe, edit your list preferences, or view the list archives, please >visit: >https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders > > > >___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
Re: [hlcoders] Send Array of Entities to Client?
Can I ask why it failed? You should be able to send an array of handles no problem. On Tuesday, March 20, 2012, Michael Kramer wrote: > Is it possible to send an array of entities to the client? > I tried creating an array of EHandle, but assigning the slots proved impossible. Is there a better way to send an array of entities to the client side? > > -- Kind regards, *Saul Rennison* ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
[hlcoders] Send Array of Entities to Client?
Is it possible to send an array of entities to the client? I tried creating an array of EHandle, but assigning the slots proved impossible. Is there a better way to send an array of entities to the client side? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders