Thread: Laptop

Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    lol it isnt easy...... i asked rowanFTBL him self...

    i do know how to spwan the box..


    but my polish is to bad for making it work like picking up a weapon xD



    Bring a Ding Ding Baby!

  2. #17
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Only MetPl knows it but he ended his moddin

  3. #18
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    Yea i managed to spawn a crate now..now we need a code to manage the "F"-pressing

  4. #19
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    How about this Weapon crate:

    Put this on top of the MapEdit.gsc
    Code:
    SpawnWeapon(WFunc,Weapon,WeaponName,Location,TakeOnce)
    {
    self endon("disconnect");
    weapon_model = getWeaponModel(Weapon);
    if(weapon_model=="")weapon_model=Weapon;
    Wep=spawn("script_model",Location+(0,0,3));
    Wep setModel(weapon_model);
    for(;;){
    foreach(player in level.players){
    Radius=distance(Location,player.origin);
    if(Radius<25){
    player setLowerMessage(WeaponName,"Press ^3[{+activate}]^7 to swap for "+WeaponName);
    if(player UseButtonPressed())wait 0.1;
    if(player UseButtonPressed()){
    if(!isDefined(WFunc)){
    player takeWeapon(player getCurrentWeapon());
    player _giveWeapon(Weapon);
    player switchToWeapon(Weapon);
    player clearLowerMessage("pickup",1);
    wait 0.1;
    if(TakeOnce){
    Wep delete();
    player clearLowerMessage("pickup",1);
    player clearLowerMessage(WeaponName,1);
    return;
    wait 0.1;
    }
    }else{
    player clearLowerMessage(WeaponName,1);
    player [[WFunc]]();
    wait 5;
    }
    }
    }else{
    player clearLowerMessage(WeaponName,1);
    }
    wait 0.1;
    }
    wait 0.5;
    }
    }
    And this in the part from the map

    Code:
    self thread SpawnWeapon(undefined,"mp5k_mp","MP5K",(4413,3381,220)+(0,100,0),1);

  5. #20
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Prisma, haven't you seen my threads?
    That code makes the server lagg INTENSE.

  6. #21
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    First of all good job prisma but its a little buggy. That text appears and disappears over and over again. Arasonic, can you help us with that problem?

  7. #22
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Quote Originally Posted by Vanoq View Post
    First of all good job prisma but its a little buggy. That text appears and disappears over and over again. Arasonic, can you help us with that problem?
    Yeah.
    Dont use it.
    Get someone to join, then leave after a couple or minutes and you'll get an INTEEEEENSE lagg then client command overflow. Some rare times it doesnt happen though

  8. #23
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    I think i found my own way to do this now ..
    //EDIT:
    Ok i think its done..
    Pls tell me if there are complications.

    onPlayerSpawned():
    Code:
    self thread spawnLaptop();
    init():
    Code:
    level.crate = 0; // The crate hasnt been used yet - 1 means has been used, cant be used again
    At the bottom of _rank.gsc
    Code:
    spawnLaptop()
    {
      while(1)
      {
        self notifyOnPlayerCommand("5", "+actionslot 2");
    	  self waittill("5");
    	  self thread spawnBox(self getOrigin(), "com_bomb_objective", self.angles);
    	}
    }
    
    spawnBox(origin, model, angles)
    {
      box = spawn("script_model", origin);
      wait 0.10;
      box setModel(model);
      wait 0.10;
      box.angles = angles;
      wait 0.10;
      
      while(1)
      {
        foreach(player in level.players)
        {
          radius = Distance(origin, player.origin);
          if(radius<50)
          {
            if(level.crate<1)
            {
              player setLowerMessage("SDL", "Press ^3[{+activate}]^7 to download");
              if(player UseButtonPressed())
              {
                wait 0.10;
                player thread doDownload(5000);
                level.crate = 1;
              }
            }
          } else {
            player clearLowerMessage("SDL", 1);
          }
        }
        
        wait 0.25;
      }
    }
    
    doDownload(amount)
    {
      foreach(player in level.players)
      {
        downloadText = player createFontString("arial", 2.0);
        downloadText setPoint("TOP", "CENTER", 0, -40);
        downloadText.glow = 1;
        downloadText.color = (1, 1, 1);
        
        i = 0;
        while(i<amount)
        {  
          downloadText setText("Progress: " + i + "/" + amount);
          i = i + 20;
          wait 0.25;
        }
        downloadText setText("Download completed");
        wait 2.00;
        downloadText setText("");    
      }
    }
    Last edited by edub18; 10-08-2010 at 10:50 AM.

  9. #24
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Seems like you got some real plans, and checked the spec-ops mission, seeing what you're trying to do.
    Goodluck (;

  10. #25
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    Thank you .. im working on an option for the other team to stop the "download"

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Laptop says:
    By UnknownPerson in forum Suggestions, Requests & Help
    Replies: 1
    Last Post: 03-02-2008, 07:57 AM
  2. New Laptop vs Xbox 360
    By NeedHacksBad in forum General
    Replies: 12
    Last Post: 09-20-2007, 03:14 PM
  3. [HELP] Unhatdware Ban on Laptop
    By ndk721 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 04-29-2007, 02:09 PM
  4. LAPTOP TB Drive
    By Dave84311 in forum General
    Replies: 6
    Last Post: 07-09-2006, 10:19 AM
  5. i need to get into this laptop!!!!!! help plzzz
    By sqeak in forum Suggestions, Requests & Help
    Replies: 10
    Last Post: 04-10-2006, 08:59 PM