I got a bunch of "SetTexts" on the screen in my mod, and during the killcam, some of them tend to bounce around annoyingly. Just asking if any1 knows how to remove them during the killcam. (Gametype is SnD and some people like to record)
DestroyOnKillcam?
|
05-01-2011, 19:36
Code: cleanUpOnEnd() on init() Code: level thread cleanUpOnEnd(); not sure if game_ended is when the game really ends or when it shows the winner etc (08-10-2011, 12:58)Pozzuh Wrote:Se7en Wrote:Stealed, from cod4 mod ...look who's talking [Release] Old School Mod v2.2 [Release] Scroll menu
Thx for helping, ill try it tomorrow. (Way to tired ATM)
However, I did find this while i was browsing trough some GSC's Code: if ( game["state"] == "playing" && !isInKillcam() EDIT: Just askin, shouldnt there be a "wait .1" after the last "elemname destroy();" ? ![]()
05-01-2011, 20:42
(05-01-2011, 20:08)isokasi Wrote: Thx for helping, ill try it tomorrow. (Way to tired ATM)Dunno if that will work, and you dont need a wait because there is a Waittill in the while loop ^^ (08-10-2011, 12:58)Pozzuh Wrote:Se7en Wrote:Stealed, from cod4 mod ...look who's talking [Release] Old School Mod v2.2 [Release] Scroll menu
I see, didnt think of that :>
EDIT: if ( game["state"] == "playing" && !isInKillcam() ), didnt work. But when i use your version it disappears when i kill the last guy, but appears again in the killcam. (05-01-2011, 20:57)isokasi Wrote: I see, didnt think of that :> ok that sucks but here: Code: if ( game["state"] == "playing" && [b][size=x-large]![/size][/b]isInKillcam() ) the ! = NOT which means this will run while the player is playing and is not looking at a killcam.. try Code: isInKillcam() something like this: Code: onPlayerSpawned() (08-10-2011, 12:58)Pozzuh Wrote:Se7en Wrote:Stealed, from cod4 mod ...look who's talking [Release] Old School Mod v2.2 [Release] Scroll menu
05-02-2011, 18:42
(05-02-2011, 11:03)iAegle Wrote:(05-01-2011, 20:57)isokasi Wrote: I see, didnt think of that :> Didnt work. I also asked Insignia (guy at alterIW) and he didnt know either so..
I got it!
![]() Code: onPlayerSpawned() change self.textX.alpha to your own textnames .. (08-10-2011, 12:58)Pozzuh Wrote:Se7en Wrote:Stealed, from cod4 mod ...look who's talking [Release] Old School Mod v2.2 [Release] Scroll menu |
Users browsing this thread: |
1 Guest(s) |