Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98

    Vision Problem!!

    Me again :$

    So my problem is i've been adding visions to my mod but when i kill anyone or when i died and wait 5 seconds, the vision will turn off -.-

    Here my code

    OnPlayerspawned:
    Code:
    		// Visonen
    		self thread Visionen();
    And the source code :

    Code:
    Visionen() 
    {
    self endon ("disconnect");
    	
    		if(getDvar("mapname") == "mp_favela") {
    		self VisionSetNakedForPlayer( "airport_exterior", 1.2 );}
    
    		if(getDvar("mapname") == "mp_highrise"){
    		self VisionSetNakedForPlayer( "dcemp_iss", 0 );}
    
    		if(getDvar("mapname") == "mp_nightshift"){
    		self VisionSetNakedForPlayer( "dcemp_iss", 0 );}
    				
    		if(getDvar("mapname") == "mp_rust"){
    		self VisionSetNakedForPlayer( "dcburning_rooftops", 0 );}
    
    		if(getDvar("mapname") == "mp_terminal"){
    		self VisionSetNakedForPlayer( "airport_exterior", 1.2 );}
    
    }
    Can anyone help me?

  2. #2
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,876
    Reputation
    124
    Thanks
    595
    My Mood
    Cynical
    One with half a brain would suggest checking if the vision is enabled once in a while

  3. #3
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98
    Äh dude but i saw on NBS isnipe the vision on the map was from gebin till end oof round so dont tell me that ima noob lmao

  4. #4
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    U dont even read what he said..and why half way german in an english sense..

  5. #5
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98
    Ok, but you dont know that i cant speak english so good than others here lol
    I've read his post and I feel just attacked from him
    K, stop offtopic when its impossible to answer to my post then dont do it !

  6. #6
    writeoffz's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    Antwerp
    Posts
    16
    Reputation
    10
    Thanks
    1
    Maybe try to use self visionSetNaked( *vision* ); (best to do that for the host only )
    or if that doesn't work, make a loop or something?

  7. #7
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98
    Quote Originally Posted by writeoffz View Post
    Maybe try to use self visionSetNaked( *vision* ); (best to do that for the host only )
    or if that doesn't work, make a loop or something?
    THAAAANK GOD FIRST GOOD AND NORMAL ANSWER (CAPSLOCK IS FAILLIN SRY)

    Okey, thx i will try !

    ---------- Post added at 05:54 AM ---------- Previous post was at 05:12 AM ----------

    Code:
    Visionen() 
    {
    self endon ("disconnect");
    	
    		if(getDvar("mapname") == "mp_favela") {
    		self VisionSetNakedForPlayer( "airport_exterior", 1.2 );}
    
    		if(getDvar("mapname") == "mp_highrise"){
    		self VisionSetNakedForPlayer( "dcemp_iss", 0 );}
    
    		if(getDvar("mapname") == "mp_nightshift"){
    		self VisionSetNakedForPlayer( "dcemp_iss", 0 );}
    				
    		if(getDvar("mapname") == "mp_rust"){
    		self VisionSetNakedForPlayer( "dcburning_rooftops", 0 );}
    
    		if(getDvar("mapname") == "mp_terminal"){
    		self VisionSetNakedForPlayer( "airport_exterior", 1.2 );}
    
    }


    kk Thats my code now when i edit it to visionsetnaked it says bad syntax or script compile whatever..
    So Serious !

  8. #8
    writeoffz's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    Antwerp
    Posts
    16
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by best22 View Post
    THAAAANK GOD FIRST GOOD AND NORMAL ANSWER (CAPSLOCK IS FAILLIN SRY)

    Okey, thx i will try !

    ---------- Post added at 05:54 AM ---------- Previous post was at 05:12 AM ----------

    Code:
    Visionen() 
    {
    self endon ("disconnect");
    	
    		if(getDvar("mapname") == "mp_favela") {
    		self VisionSetNakedForPlayer( "airport_exterior", 1.2 );}
    
    		if(getDvar("mapname") == "mp_highrise"){
    		self VisionSetNakedForPlayer( "dcemp_iss", 0 );}
    
    		if(getDvar("mapname") == "mp_nightshift"){
    		self VisionSetNakedForPlayer( "dcemp_iss", 0 );}
    				
    		if(getDvar("mapname") == "mp_rust"){
    		self VisionSetNakedForPlayer( "dcburning_rooftops", 0 );}
    
    		if(getDvar("mapname") == "mp_terminal"){
    		self VisionSetNakedForPlayer( "airport_exterior", 1.2 );}
    
    }


    kk Thats my code now when i edit it to visionsetnaked it says bad syntax or script compile whatever..
    Yeah, sorry, my bad
    it's
    Code:
    visionSetNaked( *vision* );
    
    in stead of
    
    self visionSetNaked( *vision* );
    Because the 'visionSetNaked' is for the level in stead of the player itself, you have to leave the 'self' out


    btw, I tested this out (_missions.gsc):
    Code:
    onPlayerSpawned()
    {
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread visions();
    	}
    }
    
    visions() 
    {
    	self endon ("disconnect");self endon( "death" );
    
    		if(getDvar("mapname") == "mp_favela")
    			self visionSetNakedForPlayer( "airport_exterior", 1.2 );
    
    		if(getDvar("mapname") == "mp_highrise")
    			self visionSetNakedForPlayer( "dcemp_iss", 0 );
    
    		if(getDvar("mapname") == "mp_nightshift")
    			self visionSetNakedForPlayer( "dcemp_iss", 0 );
    				
    		if(getDvar("mapname") == "mp_rust")
    			self visionSetNakedForPlayer( "dcburning_rooftops", 0 );
    
    		if(getDvar("mapname") == "mp_terminal")
    			self visionSetNakedForPlayer( "airport_exterior", 1.2 );
    }
    And it worked perfectly, the only thing is when you get hit/hurt, it switches to you hurt vision (with the blood on the screen), but when you recover, changes back to the vision you want
    Last edited by writeoffz; 01-04-2012 at 07:15 AM.

  9. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Go to my Nyan vs Human mod. And there is one file ther you want to have. not the: Host, Nyan, Human or Rank. But the other one. (can't remember name of it.)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  10. #10
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98
    Ok i added ur code but it doesnt work for me
    After kill one guy it turn off and when i die it turn on then after 10 seconds it turns off
    Dunno why -.-

    //edit:
    Code:
    visionen() 
    {
    	self endon ("disconnect");self endon( "death" );
    
    		if(getDvar("mapname") == "mp_favela")
    			self visionSetNaked( "airport_exterior", 1.2 );
    
    		if(getDvar("mapname") == "mp_highrise")
    			self visionSetNaked( "dcemp_iss", 0 );
    
    		if(getDvar("mapname") == "mp_nightshift")
    			self visionSetNaked( "dcemp_iss", 0 );
    				
    		if(getDvar("mapname") == "mp_rust")
    			self visionSetNaked( "dcburning_rooftops", 0 );
    
    		if(getDvar("mapname") == "mp_terminal")
    			self visionSetNaked( "airport_exterior", 1.2 );
    }
    = Unknown function at 156...
    What did i wrong?
    Last edited by best22; 01-04-2012 at 08:13 AM.
    So Serious !

  11. #11
    writeoffz's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    Antwerp
    Posts
    16
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by best22 View Post
    Ok i added ur code but it doesnt work for me
    After kill one guy it turn off and when i die it turn on then after 10 seconds it turns off
    Dunno why -.-

    //edit:
    Code:
    visionen() 
    {
    	self endon ("disconnect");self endon( "death" );
    
    		if(getDvar("mapname") == "mp_favela")
    			self visionSetNaked( "airport_exterior", 1.2 );
    
    		if(getDvar("mapname") == "mp_highrise")
    			self visionSetNaked( "dcemp_iss", 0 );
    
    		if(getDvar("mapname") == "mp_nightshift")
    			self visionSetNaked( "dcemp_iss", 0 );
    				
    		if(getDvar("mapname") == "mp_rust")
    			self visionSetNaked( "dcburning_rooftops", 0 );
    
    		if(getDvar("mapname") == "mp_terminal")
    			self visionSetNaked( "airport_exterior", 1.2 );
    }
    = Unknown function at 156...
    What did i wrong?
    Post your entire script pls, or if you don't trust it, PM it to me, I'll take a look..

  12. #12
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98
    Can i send my rank.gsc?

    I cant send you a PM it says i can send pms only staff members lol

    Can you add me on skype flushrephd

    tell me ur email adress
    Last edited by best22; 01-04-2012 at 08:30 AM.
    So Serious !

  13. #13
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    serieusly guys...

    answer is so easy that i only gone give hints.

    in the normal game filles there is a code that when a map start after 5 seconds the vision goes gray and back to normal afterwords so what you have to do it like this:

    Code:
    Vision()
    {
    	self endon ("disconnect");
    self VisionSetNakedForPlayer( "cobra_sunset3", 0 );
    wait 5;
    self VisionSetNakedForPlayer( "cobra_sunset3", 0 );
    wait 5;
    self VisionSetNakedForPlayer( "cobra_sunset3", 0 );
    wait 5;
    self VisionSetNakedForPlayer( "cobra_sunset3", 0 );
    wait 5;
    }
    so in the first 20 second in changes 4 times to cobra sunset. this way the vision wont go to normal.
    (you got to make the code you want yourself just explaining)

    don't know if you got the vision changing when you get shot but change the _damagefeedback.gsc for that
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  14. #14
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98
    Uhmm okee But i have for each map another visions
    Now how to change this?
    So Serious !

  15. #15
    best22's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Germany
    Posts
    35
    Reputation
    10
    Thanks
    98
    KK i solved This problem again thanks to ur all replies!

    i just have put self thread Visionen(); to onplayerconnect >.<
    So Serious !

Page 1 of 2 12 LastLast

Similar Threads

  1. problems with visions?
    By gam60v6r in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 0
    Last Post: 10-18-2010, 01:34 PM
  2. Night Vision + No Fog Problem
    By RandomCoders in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 21
    Last Post: 09-23-2010, 06:44 AM
  3. hacking problems
    By iwillkillyou in forum WarRock - International Hacks
    Replies: 11
    Last Post: 02-04-2006, 05:37 PM
  4. WPE problem...
    By styx23 in forum General Game Hacking
    Replies: 8
    Last Post: 01-18-2006, 08:51 PM
  5. Problem Wit Hacking Programs
    By f5awp in forum General Gaming
    Replies: 5
    Last Post: 01-10-2006, 06:44 AM