MantisBT - Zandronum
View Issue Details
0002848Zandronum[All Projects] Suggestionpublic2016-10-02 19:572016-10-02 21:05
fr-blood 
 
normalminoralways
closedduplicate 
MicrosoftWindowsXP/Vista/7
3.0-beta 
 
0002848: GetUserCVar ignores "user" types of cvars
I've some scripts which check if the player is agree or not to start the map introduction, he can dedice of it with this "user bool afd_mapstart = TRUE;"

The script:
Script 1 ENTER
{// Map Information
GiveInventory("SpecialMap",1);
if(GetUserCVar(PlayerNumber(),"afd_mapstart") == TRUE)
{
    SetPlayerProperty(0,1,PROP_TOTALLYFROZEN);
    FadeTo(0,0,0,1.0,1.0);
    SetFont("BIGFONT");
    Information("Thursday 14th October 2257","Nemezis, UAC Outpost Post B-411","Sergeant","Defend the post");
    Delay(35*8);
    FadeTo(255,255,255,0.0,2.0);
    SetPlayerProperty(0,0,PROP_TOTALLYFROZEN);
}
delay(35*5);
MapName("\ciOutpost Under Attack","\cgBlood");
}

The map introduction will still happen even if the player turned it off online.
No tags attached.
duplicate of 0002674closed Dusk GetUserCVar doesn't work as it's supposed to, missing functionality. 
Issue History
2016-10-02 19:57fr-bloodNew Issue
2016-10-02 20:01fr-bloodNote Added: 0015735
2016-10-02 21:05Edward-sanStatusnew => closed
2016-10-02 21:05Edward-sanResolutionopen => duplicate
2016-10-02 21:05Edward-sanRelationship addedduplicate of 0002674

Notes
(0015735)
fr-blood   
2016-10-02 20:01   
Oh sorry I didn't see that someone just posted about that problem, just delete that ticket.