Results 1 to 5 of 5

Thread: Killtriggers

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Killtriggers

    Hello Guys!
    I have got a map and I want to place there Killtriggers, because the players on my server glitch on some places everytime.
    I had already got one Killtrigger, but they found another again
    My script looked before so:

    Code:
    main()
    {
    	maps\mp\_load::main();
    
    	if (getcvar("scr_remove_killtriggers") == "" || getcvarint("scr_remove_killtriggers") < 1)
    	{
    		level.killtriggers[0] = spawnstruct();
    		level.killtriggers[0].origin = (1593, -1960, -140);
    		level.killtriggers[0].radius = 140;
    		level.killtriggers[0].height = 12;
    
    		if (getcvar("g_gametype") != "strat")
    			thread maps\mp\_killtriggers::init();
    	}
    }
    This Killtrigger does work.

    But as I added my second, the second doesn't work.

    Code:
    main()
    {
    	maps\mp\_load::main();
    
    	if (getcvar("scr_remove_killtriggers") == "" || getcvarint("scr_remove_killtriggers") < 1)
    	{
    		level.killtriggers[0] = spawnstruct();
    		level.killtriggers[0].origin = (1593, -1960, -140);
    		level.killtriggers[0].radius = 140;
    		level.killtriggers[0].height = 12;
    
    		level.killtriggers[1] = spawnstruct();
    		level.killtriggers[1].origin = (38, -713, -27);
    		level.killtriggers[1].radius = 150;
    		level.killtriggers[1].height = 20;
    
    		if (getcvar("g_gametype") != "strat")
    			thread maps\mp\_killtriggers::init();
    	}
    }
    Can somebody help me please why the second doesn't work?

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Did you double-check the coordinates?

  3. #3
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    Yes, the first one still works, but the second not

  4. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    What happens when you switch the coordinates?
    timescale 0.01

  5. #5
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    the second killtrigger isn't there, the first is there, i think the second will not spawn

    Edit: I found the problem, as I did /viewpos and wrote there the coordinates and tested, then later I just saw later that the trigger is a bit away from me. This is very LOL... idk why that happened...
    Last edited by Loveboy; 1st January 2014 at 22:08.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •