[HELP] Codex Particles

Results 1 to 1 of 1
  1. #1
    Valued Member Mateuus is offline
    MemberRank
    Mar 2013 Join Date
    123Posts

    [HELP] Codex Particles

    Anyone know where this function detects that the Spawn of particle when it hits an object?


    Terrain2.cpp

    Code:
    if(strstr(strupr(buff), "CONCRETE"))
    				strcpy(buff,"Concrete");
    			else if(strstr(strupr(buff), "DIRT"))
    				strcpy(buff,"Dirt");
    			else if(strstr(strupr(buff), "SAND"))
    				strcpy(buff,"Sand");
    			else if(strstr(strupr(buff), "SNOW"))
    				strcpy(buff,"Snow");
    			else if(strstr(strupr(buff), "GRASS"))
    				strcpy(buff,"Grass");
    			else if(strstr(strupr(buff), "FOREST"))
    				strcpy(buff,"Forest");
    			else if(strstr(strupr(buff), "WOOD"))
    				strcpy(buff,"Wood");
    			else if(strstr(strupr(buff), "METAL_RESOURCES"))
    				strcpy(buff,"Metal_Resources");
    			else if(strstr(strupr(buff), "WOOD_RESOURCES"))
    				strcpy(buff,"Wood_Resources");
    			else if(strstr(strupr(buff), "WATER"))
    				strcpy(buff,"Water");		
    			else if(strstr(strupr(buff), "METAL"))
    				strcpy(buff,"Metal");
    AI_Player.cpp

    Code:
    else if (strstr(strupr(NameOfMaterial), "WOOD_RESOURCES"))
    								{
    									if (plr)
    									{
    										wiCharDataFull& slot = plr->CurLoadout;
    										if (slot.Stats.Wood<100)
    										{
    											slot.Stats.Wood++;
    											PKT_S2C_UpdateSlotsCraft_s n;
    											n.Wood=slot.Stats.Wood;
    											n.Stone=slot.Stats.Stone;
    											n.Metal=slot.Stats.Metal;
    											p2pSendToHost(plr, &n, sizeof(n));
    										}
    									}
    								}




Advertisement