Jump to content

How can I render an atomic in VC?


KuangFeng_Chen

Recommended Posts

KuangFeng_Chen

i tried like CPed::Addweapon,use m_pWeaponModel = (RpAtomic*)CModelInfo::GetModelInfo(id)->CreateInstance();

but it not showed in gameworld.

and i keep tried Cped::Render,

 

RpHAnimHierarchy *hier = GetAnimHierarchyFromSkinClump(GetClump());
        int idx = RpHAnimIDGetIndex(hier, m_pFrames[PED_HANDR]->nodeID);
        RwMatrix *mat = &RpHAnimHierarchyGetMatrixArray(hier)[idx];
        RwFrame *frame = RpAtomicGetFrame(m_pWeaponModel);
        *RwFrameGetMatrix(frame) = *mat;
        RwFrameUpdateObjects(frame);
        RpAtomicRender(m_pWeaponModel);

but i cant find RpAtomicRender in SDK.

in revc, it just RpAtomicRender(RpAtomic atomic) { atomic->render(); return atomic; },

i find render() in nowhere

😵‍💫how can i render an atomic

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.