Thread: Icons in Map

Results 1 to 9 of 9
  1. #1
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored

    Icons in Map

    Hey,
    is there a way to set an icon above a special spot in the world?
    Ive been searching for that but i didnt find anything like that.

  2. #2
    SneakyPete's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    In a New World
    Posts
    531
    Reputation
    22
    Thanks
    25
    My Mood
    Happy
    yes its possible

    Waiting between worlds that divide through a choice undefined
    A break in the line where all paths intertwine
    And no roads lead or progress behind
    And all signs read: "Know The Way. Decide"



  3. #3
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Thanks to killingdyl, complete this with your code, you can change the icon to whatever you want,

    Code:
    CreateElevator(enter, exit, angle)
    {
    	flag = spawn( "script_model", enter );
    	flag setModel( level.elevator_model["enter"] );
    	flag MapFlags();
    	wait 0.01;
    	flag = spawn( "script_model", exit );
    	flag setModel( level.elevator_model["exit"] );
    	wait 0.01;
    	self thread ElevatorThink(enter, exit, angle);
    }
    
    MapFlags()
    {
    	self endon ( "disconnect" ); 
    	self endon ( "death" ); 
    
    		curObjID = maps\mp\gametypes\_gameobjects::getNextObjID();	
    		name = precacheShader( "compass_waypoint_panic" );	
    		objective_add( curObjID, "invisible", (0,0,0) );
    		objective_position( curObjID, self.origin );
    		objective_state( curObjID, "active" );
    		objective_team( curObjID, self.team );
    		objective_icon( curObjID, name );
    		self.objIdFriendly = curObjID;
    }

  4. The Following User Says Thank You to Yamato For This Useful Post:

    edub18 (03-25-2011)

  5. #4
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    check nemesis mod ;D

  6. #5
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    Quote Originally Posted by Yamato View Post
    Thanks to killingdyl, complete this with your code, you can change the icon to whatever you want,
    Thanks but i dont want the icons only on flags.
    Like so:

    I searched for it in the nemesis code, but i didnt find the function.

  7. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by Vanoq View Post
    Thanks but i dont want the icons only on flags.
    Like so:

    I searched for it in the nemesis code, but i didnt find the function.
    Put that code on a block for example, ^^

  8. #7
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    What kind of block?

  9. #8
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by Vanoq View Post
    What kind of block?
    Code:
    CreateBlocks(pos, angle)
    {
    	block = spawn("script_model", pos );
    	block setModel("com_plasticcase_friendly");
    	block.angles = angle;
    	block Solid();
    	block MapFlags();
    	block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    	wait 0.01;
    }
    or better, if you just want to indicate:

    Code:
    CreateBlocks(pos, angle)
    {
    	block = spawn("script_model", pos );
    	block.angles = angle;
    	block MapFlags();
    	wait 0.01;
    }

  10. #9
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    I tried it your way now ... doesnt work. No icons on map
    Last edited by edub18; 03-27-2011 at 02:12 AM.