Use tabs to navigate through user menu.

mods (welcome message/teleport)
2 posts / 0 new
Last post
EasyMeat
EasyMeat's picture
Offline
Last seen: 7 months 2 weeks ago
Private First Class (PV1)
Joined: 12/13/2014 - 03:39
Points: 19
mods (welcome message/teleport)

OK I found a bug, you have to put the _welcome_messages.gsc in your mod.iwd not in a folder maps/mp/gametypes or it will crash when maps change. I was fooling around and ran a sab rotation and when the map changed it crashed saying "couldn't find _welcome_messages.gsc in raw files" Also did some new stuff to it added more messages, they show up while waiting for match to start, add "self thread ClanInfo();" to _welcome_messages.gsc under "self thread showWelcomeMessage();" Another thing to note is if you put your messages in the second slot instead of first ( "", "WELCOME TO -=TDH=- DEAD HEADS", "", (0.4, 0.0, 0.0) ); the text is smaller and a bit lower. ClanInfo() { self endon ( "disconnect" ); self endon ( "death" ); { wait 1; self iPrintln( "^1Welcome To The Dead Heads" ); wait 1; self iPrintln( "^3Long Range Silent Snipers" ); wait 1; self iPrintln( "^7Vist us at www.deadheads.net" ); wait 1; self iPrintln( "^2Enjoy your stay" ); wait 1; } }

 

and a teleport script when you switch weapons it will pop up a airstrike map and you click on where you want to be teleported to...lol

doTeleport()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        
        for(;;)
        {
        self waittill( "weapon_change" );
        self beginLocationselection( "map_artillery_selector", level.artilleryDangerMaxRadius * 1.2 );
        self.selectingLocation = true;
        self waittill( "confirm_location", location );
        newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
        self SetOrigin( newLocation );
        self endLocationselection();
        self.selectingLocation = undefined;
        self iPrintln( "^6You Teleported !" );
        self sayall( "^5I ^6teleported" );

        }
}

Slimbips
Slimbips's picture
Offline
Last seen: 1 hour 33 min ago
Joined: 06/25/2015 - 19:46
Points: 4852

i was allready doing that easymeat :), i putt all my mods into iwd files :), but thanks for sharing :).
my mod wasnt crashing and its working alll fine Smile
i dont want a teleport mod :P, thats sucks hihi.