Show Origin -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 6 years ago

Is it possible to show the origin (for example 423 -1486 868) in the game? that would be easier to place new entities.




Mr. Wonko

Addicted to GF

50 XP

24th September 2006

0 Uploads

277 Posts

0 Threads

#2 6 years ago

If you mean the place where the camera currently is, you can get that using the "viewpos" command. The origin is always at 0, 0, 0, like Coruscant.




eezstreet

Lord of the .DCC files

50 XP

16th June 2008

0 Uploads

2,662 Posts

0 Threads

#3 6 years ago

If you want to code it, it could not be simpler than adding a new command.

In g_cmds.c, look for ClientCommand. Add this code after the "else if(!Q_stricmp(cmd, "give")) {" block:

else if(!Q_stricmp(cmd, "myOrigin")) { trap_SendServerCommand(ent->s.number, va("print \"%f %f %f\"", ent->s.origin[0], ent->s.origin[1], ent->s.origin[2])); return; }




jk3editor

Retard Hungarian Modder

50 XP

21st August 2008

0 Uploads

1,520 Posts

0 Threads

#4 6 years ago

I think it could be also done in Icarus script.