Results 1 to 6 of 6
  1. #1
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid

    i set g_hardcore 1 but i want to add to the weapons names

    hey!
    im trying to add to weapons a name and i activated g_hardcore.
    i tried to do this:
    Code:
    		if(self getCurrentWeapon() == "WEAPON")
    	self.Name = self createFontString( "default", 2.5 );
            self.Name setPoint( "Right", "CENTER", 150, 180 );
    	notifyData.text = "NAME";
    but when i switch to the weapon i set a name its doing nothing.

  2. #2
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    311
    My Mood
    Fine
    Quote Originally Posted by idiot2010 View Post
    hey!
    im trying to add to weapons a name and i activated g_hardcore.
    i tried to do this:
    if(self getCurrentWeapon() == "WEAPON")
    self.Name = self createFontString( "default", 2.5 );
    self.Name setPoint( "Right", "CENTER", 150, 180 );
    notifyData.text = "NAME";
    but when i switch to the weapon i set a name its doing nothing.
    Replace the notifyData.text with self.Name.text

    I'm not sute if its .text or something else.

  3. #3
    YuDi21's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    mp_complex
    Posts
    141
    Reputation
    12
    Thanks
    35
    My Mood
    Angelic
    download mod Black Ops, cool code ( weapon names ) with effects

  4. #4
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid
    idk how to make it for my mod ( ima talking about the black ops mod )

  5. #5
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Code:
    wep = self getCurrentWeapon();
    Name = self createFontString( "default", 2.5 );
    Name setPoint( "Right", "CENTER", 150, 180 );
    Name setText = (wep);
    I belive

  6. #6
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid
    Quote Originally Posted by Arasonic View Post
    Code:
    wep = self getCurrentWeapon();
    Name = self createFontString( "default", 2.5 );
    Name setPoint( "Right", "CENTER", 150, 180 );
    Name setText = (wep);
    I belive
    nope..............
    not workin