Quote:
Originally Posted by Lord_SAmMY
I think it would be interesting to see the source of your coordinates. - How they got written
- How they got loaded
Btw did you try to comment out DispatchKeyValueVector(index, "origin", spawnWeaponPositions[i]); ?
|
I read they from file. It is no so interesting.
Code:
while (!IsEndOfFile(file) && ReadFileLine(file, buffer, sizeof(buffer)))
{
ExplodeString(buffer, " ", parts, 6, 16);
spawnWeaponPositions[spawnWeaponPointCount][0] = StringToFloat(parts[0]);
spawnWeaponPositions[spawnWeaponPointCount][1] = StringToFloat(parts[1]);
spawnWeaponPositions[spawnWeaponPointCount][2] = StringToFloat(parts[2])-50.0;
spawnWeaponAngles[spawnWeaponPointCount][0] = StringToFloat(parts[3])+0.25;
spawnWeaponAngles[spawnWeaponPointCount][1] = StringToFloat(parts[4])+0.25;
spawnWeaponAngles[spawnWeaponPointCount][2] = StringToFloat(parts[5])+0.25;
spawnWeaponPointCount++;
}
Also, it work perfect, if i dont use SetGlowing(index); all weapons spawn in right coords.