[HELP] Add RPG

Results 1 to 2 of 2
  1. #1
    Proficient Member GMkidink is offline
    MemberRank
    Apr 2012 Join Date
    152Posts

    [HELP] Add RPG

    I was trying to put the RPG in the newest sources but I getting some error in this part
    Code:
    if(owner->NetworkLocal)
    	{
    		// send that you hit nothing no matter what you hit.  This avoids the anti-cheat system being tripped.
    		PKT_C2C_PlayerHitNothing_s n;
    		p2pSendToHost(owner, &n, sizeof(n), true);
    
    		obj_Player* plr = (obj_Player*)owner;
    		for(int i=0; i<NUM_WEAPONS_ON_PLAYER; ++i)
    		{
    			if(plr->m_Weapons[i] && plr->m_Weapons[i]->getItemID() == m_Weapon->m_itemID)
    			{
    				gClientLogic().ApplyExplosionDamage(center, m_Weapon->m_AmmoArea, i);
    				break;
    			}
    		}
    	}
    and I have been follow all the tutorial in this post Rocket object classes for use with RPG or similar system

    someone can give me a little help with this please?


  2. #2
    Account Upgraded | Title Enabled! dNi3L is offline
    MemberRank
    Nov 2014 Join Date
    IllinoisLocation
    237Posts

    Re: [HELP] Add RPG

    I added it to the DOOM/Clean source like you would any other weapon with no problem at all...didn't have to edit any code.Works great.



Advertisement