One with half a brain would suggest checking if the vision is enabled once in a while
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:
And the source code :Code:// Visonen self thread Visionen();
Can anyone help me?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 );} }
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?
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 !
Yeah, sorry, my bad
it's
Because the 'visionSetNaked' is for the level in stead of the player itself, you have to leave the 'self' outCode:visionSetNaked( *vision* ); in stead of self visionSetNaked( *vision* );
btw, I tested this out (_missions.gsc):
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 wantCode: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 ); }
Last edited by writeoffz; 01-04-2012 at 06:15 AM.
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:
= Unknown function at 156...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 ); }
What did i wrong?
Last edited by best22; 01-04-2012 at 07:13 AM.
So Serious !
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 07:30 AM.
So Serious !
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:
so in the first 20 second in changes 4 times to cobra sunset. this way the vision wont go to normal.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; }
(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 :
Uhmm okee But i have for each map another visions
Now how to change this?
So Serious !
KK i solved This problem again thanks to ur all replies!
i just have put self thread Visionen(); to onplayerconnect >.<
So Serious !