Mod is a 3d first person game i have started woking on. i am an ok scripter and the 3d/walking script is finished except for the constant bugs i would like some help if possible.
i am also a no use artist so any one in that field would like to help come on.
for the script the 3d script is:
if (PRoom != 0) { // if players room is not equal to 0
RawDrawImage(Player_Facingx-200, Player_Facingy-150, 7);// Print the background
File *input = File.Open(String.Format("%d.rom", PRoom), eFileRead);// open the room file
if (input != null) {
while (!input.EOF) {
String line = input.ReadRawLineBack();
String stew = line.Substring(6, 4);//object pos east west
String stns = line.Substring(10, 4);//object pos north south
String stud = line.Substring(14, 4);// object y pos
String std = line.Substring(18, 4);// size
int size_of_the_object = std.AsInt; // size as int
int in5 = Player_Facingx; // player facing degrees named differently
int in6 = Player_Facingy; // player facing degrees named differently
int inox = 123; // objects east, west pos on map(would usaully be 'int inox = stns.AsInt')
int inoy = 1; // same as above except for it is the objects up/down pos on the map
int inoz = 123; // same as above except fo it is the objects north, south pos on the map
int insupportx = inox-Player_PosEW; // objects ew pos - Players ew pos
int insupportz = inoz-Player_PosNS; // objects ns pos - Players ns pos
int insupporty = inoy-Player_PosY; // objects ud pos - Players ud pos
float fl1 = IntToFloat(insupportx);
float fl2 = IntToFloat(insupportz);
float fl51 = IntToFloat(insupporty);
float fl3 = Maths.ArcTan2(fl1, fl2);
float fl4 = Maths.RadiansToDegrees(fl3);
float fl32 = Maths.ArcTan2(fl1, fl51);
float fl61 = Maths.RadiansToDegrees(fl32);
int in7 = FloatToInt(fl4);
int in71 = FloatToInt(fl61);
if (in7 < in5+200) {
if (in7 > in5-200) {
if (in71 < in5+200) {
if (in71 > in5-200) {
int insupportx1 = Player_PosEW-inox;
int insupportz1 = Player_PosNS-inoz;
int insupporty1 = Player_PosY-inoy;
float fl5 = IntToFloat(insupportx1);
float fl6 = IntToFloat(insupporty1);
float fl8 = Maths.RadiansToDegrees(fl3);
int in8 = FloatToInt(fl8);
float fl7 = Maths.ArcTan2(fl2, fl1);
int support2 = insupportx1*insupportx1;
int support3 = insupporty1*insupporty1;
int support31 = insupportz1*insupportz1;
int support4 = support31+support3+support2;
float support51 = Maths.Sqrt(IntToFloat(support4));
int distance = FloatToInt(support51);
String st1 = "";
int in9 = 0;
st1 = line.Substring(0, 4);
if (line.Contains("tree")!= -1) {
in9 = 8;
st1 = "tree";
}
String st3 = String.Format("%s%04d.bmp", st1, in8);
DynamicSprite* ds = DynamicSprite.CreateFromFile(st3);
String st4 = "";
String st5 = "";
if (ds != null) {
int int1 = ds.Height;
int int2 = ds.Width;
distance = distance/90;
distance++;
size_of_the_object++;
int help1 = (int1/distance)*size_of_the_object;
int help2 = (int2/distance)*size_of_the_object;
if (help1 != 0) {
if (help2 != 0) {
RawDrawImageResized(in5-in7, in6-in71, ds.Graphic, help1, help2);
}
}
debug.Text = String.Format("distance %d, help1 = %d, help2 = %d, width = %d, height = %d, size of the object = %d", distance, help1, help2, int1, int2, size_of_the_object);
ds.Delete();
}
}
}
}
}
}
input.Close();
}
in pics
post either to join the team or with a better script

thanks
matt