Vision Problem!!

Posts 1–15 of 16 · Page 1 of 2
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?
One with half a brain would suggest checking if the vision is enabled once in a while
Ä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
U dont even read what he said..and why half way german in an english sense..
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 !
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?
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..
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
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.)
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?
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..
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
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
Uhmm okee But i have for each map another visions
Now how to change this?
KK i solved This problem again thanks to ur all replies!

i just have put self thread Visionen(); to onplayerconnect >.<
Posts 1–15 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us