Results 1 to 4 of 4
  1. #1
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5

    Elevator with Logprint [games_mp.log]

    Elevator with Logprint on your games_mp.log.



    Code:
    teleporters(enter, exit, angle)
    {
    	self endon("jw");
    	self iPrintLnBold("Please press ^3[[{+actionslot 2}]] ^7to starting position of Elevator");
    	self notifyOnPlayerCommand("SL","+actionslot 2");
    	for(;;)
    	{
    		self waittill("SL");
    		st=self getOrigin();
    		efx = loadfx("misc/flare_ambient_green");
    		playFx( efx, enter );
    		showInMap();
    		self iPrintLn("Start position saved.");
    		self iPrintLnBold("Please press ^3[[{+actionslot 2}]] ^7to ending position");
    		self waittill("SL");
    		en=self getOrigin();
    		self iPrintLn("End position saved.");
    		self iPrintLnBold("Please press ^3[[{+actionslot 2}]] ^7to start build.");
    		self waittill("SL");
    		self iPrintLn("started....");
    		CreateElevator((st),(en),(0,0,0));
    		self iPrintLn("Done.");
    	    logPrint("\n------------------------------------------------------------\nStart Elevator: " + st + ", Angles: " + self getPlayerAngles() + "\nEnd Elevator: " + en + ", Angles: " + self getPlayerAngles() + "\n------------------------------------------------------------\n");
    		self notify("jw");
    	}
    }
    showInMap()
    {
    	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;
    }
    CreateElevator(enter, exit, angle)
    {
    	flag = spawn( "script_model", enter );
    	flag setModel( level.elevator_model["enter"] );
    	wait 0.01;
    	efx = loadfx( "misc/flare_ambient_green" );
    	playFx( efx, enter );
    	wait 0.01;
    	self thread ElevatorThink(enter, exit, angle);
    }
    
    
    ElevatorThink(enter,exit,angle)
    {
    	while(1)
    	{
    		foreach(player in level.players)
    		{
    			if(Distance(enter,player.origin)<= 50)
    			{
    				player SetOrigin(exit);
    				player SetPlayerAngles(angle);
    			}
    		}
    		wait .25;
    	}
    }
    Last edited by apache-wd-forum; 06-12-2012 at 08:03 AM.

  2. The Following User Says Thank You to apache-wd-forum For This Useful Post:

    Yamato (06-13-2012)

  3. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    This kind of stuff is old, you know?

  4. #3
    Larity2056's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    UDF 2457
    Posts
    2,497
    Reputation
    188
    Thanks
    700
    My Mood
    Dead
    Quote Originally Posted by Yamato View Post
    This kind of stuff is old, you know?
    That makes no sense...

  5. #4
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    Yes... is old. This Code is from Chrone Forge Patch... I Edit this a little... ideal for entiys and Spawning Points (Custom Spawn)

Similar Threads

  1. Selling Combat Arms Phisher with 1000+ Logs!
    By NxForSale in forum Trade Accounts/Keys/Items
    Replies: 19
    Last Post: 12-14-2009, 09:11 PM
  2. [Help] I CANT LOG IN WITH MY ACCOUNT AND ITS NOT BANNd
    By hakq in forum CrossFire Hacks & Cheats
    Replies: 26
    Last Post: 11-04-2009, 08:06 PM
  3. Stuck in an elevator with... Diarrhea
    By Zeinland in forum General
    Replies: 2
    Last Post: 02-09-2009, 01:46 PM
  4. The error: please log in with normal procedure
    By teckste in forum WarRock - International Hacks
    Replies: 3
    Last Post: 11-07-2008, 06:07 AM
  5. help with logging in
    By Snowbrdd in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 08-07-2008, 10:12 AM