Anyone know where this function detects that the Spawn of particle when it hits an object?
Terrain2.cpp
AI_Player.cppCode: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");
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)); } } }


Reply With Quote![[HELP] Codex Particles](http://ragezone.com/hyper728.png)

