View Single Post
  #1  
Old 10-06-2014, 09:23 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
F5 Edit Gmap or Precise Level

Here is a small system that can help your LATs get the coordinates on the gmap or the coordinates to the exact level(with the help of Pix). When you press f5, there is a option that allows you to switch the view. Figured this can be used so I'm sharing it.

PHP Code:
findplayer("MysticalDragon").addWeapon(this);
//#CLIENTSIDE

function LoadLevelWindow.onShow() {
  
this.old_x LoadLevelXField.text;
  
this.old_y LoadLevelYField.text;
  
temp.guiCheckBox = new GuiCheckBoxCtrl("LoadLevelShowGmap");
  
temp.guiCheckBox.profile "GuiDelteriaCheckboxProfile";
  
temp.guiCheckBox.10;
  
temp.guiCheckBox.80;
  
temp.guiCheckBox.width 200;
  
temp.guiCheckBox.height 20;
  
temp.guiCheckBox.text "Show GMAP instead of level"
  
temp.guiCheckBox.checked true;
  
temp.guiCheckBox.visible true;
  (
"LoadLevelWindow").addcontrol(temp.guiCheckBox);
  
updateLoadLevelData();
}

function 
LoadLevelShowGmap.onAction() {
  
updateLoadLevelData();
}

function 
updateLoadLevelData() {
  if ( 
LoadLevelShowGmap.checked ) {
    
LoadLevelFilenameField.text = ( player.gmap.name != "" player.gmap.name player.level.name );
    
LoadLevelXField.text player.x;
    
LoadLevelYField.text player.y;
  } else {
    
LoadLevelFilenameField.text player.level.name;
    
LoadLevelXField.text this.old_x;
    
LoadLevelYField.text this.old_y;
  }

In the title I meant view not edit, sorry for that.
Attached Thumbnails
Click image for larger version

Name:	gmap_snap.png
Views:	263
Size:	40.3 KB
ID:	55731  
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote