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 <charlysot...@hotmail.com> 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