Connexion
S'inscrire
Actualités
Quoi de neuf
Activités générales
Auteurs
Forums
Nouveaux messages
Rechercher un forum
Quoi de neuf
Nouveaux messages
Nouveaux messages de profil
Activités générales
Membres
Membres inscrits
Visiteurs actuels
Nouveaux messages de profil
Rechercher dans les messages des profils
Teams
Créé ton équipe
Quoi de neuf ?
Nouveaux messages
Rechercher un forum
Menu
Connexion
S'inscrire
Install the app
Install
Forums
Jeux-vidéos
Call of Duty
Call Of Duty (Ancienne Section en modération )
GSC - Text Engine By Axys
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Vous utilisez un navigateur non à jour ou ancien. Il ne peut pas afficher ce site ou d'autres sites correctement.
Vous devez le mettre à jour ou utiliser un
navigateur alternatif
.
Répondre à la discussion
Message
<blockquote data-quote="ItsAxys" data-source="post: 3507381" data-attributes="member: 223185"><p style="text-align: center"><strong><em>Petite release d'un Text Engine .</em></strong></p> <p style="text-align: center"><strong><em>Pas parfaits mais à vous de l'amélioré.</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>[CODE]#include common_scripts\utility;</em></strong></p> <p style="text-align: center"><strong><em>#include maps\mp\_utility;</em></strong></p> <p style="text-align: center"><strong><em>#include maps\mp\gametypes\_hud_util;</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>AxysInit()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> level thread Connected();</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em>Connected()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> level waittill( "connected", player );</em></strong></p> <p style="text-align: center"><strong><em> player thread onPlayerSpawned();</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>onPlayerSpawned()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self waittill( "spawned_player" );</em></strong></p> <p style="text-align: center"><strong><em> if(self isHost())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> notifyData = spawnstruct();</em></strong></p> <p style="text-align: center"><strong><em> notifyData.titleText = "^5Project Undefined"; //Line 1</em></strong></p> <p style="text-align: center"><strong><em> notifyData.notifyText = "^5Created By Axys"; //Line 2</em></strong></p> <p style="text-align: center"><strong><em> notifyData.notifyText2 = "^5Learning GSC Bitch"; //Line 3</em></strong></p> <p style="text-align: center"><strong><em> notifyData.glowalpha=1;</em></strong></p> <p style="text-align: center"><strong><em> notifyData.glowcolor=(0,0,1);</em></strong></p> <p style="text-align: center"><strong><em> notifyData.fontscale=2.5;</em></strong></p> <p style="text-align: center"><strong><em> self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );</em></strong></p> <p style="text-align: center"><strong><em> self thread menuEntering();</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>MonitorButtons()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> if(self UseButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self notify("Pressed_Square");</em></strong></p> <p style="text-align: center"><strong><em> wait .3;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> if(self AttackButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self notify("Pressed_R1");</em></strong></p> <p style="text-align: center"><strong><em> wait .3;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> if(self AdsButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self notify("Pressed_L1");</em></strong></p> <p style="text-align: center"><strong><em> wait .3;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> if(self SecondaryOffhandButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self notify("Pressed_L2");</em></strong></p> <p style="text-align: center"><strong><em> wait .3;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> if(self FragButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self notify("Pressed_R2");</em></strong></p> <p style="text-align: center"><strong><em> wait .3;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> if(self MeleeButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self notify("Pressed_Melee");</em></strong></p> <p style="text-align: center"><strong><em> wait .3;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> wait .05;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>menuEntering()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> self.menuOpen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.subsmenu = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.aim = false;</em></strong></p> <p style="text-align: center"><strong><em> self.god = false;</em></strong></p> <p style="text-align: center"><strong><em> self.jump = false;</em></strong></p> <p style="text-align: center"><strong><em> self.speed = false;</em></strong></p> <p style="text-align: center"><strong><em> self thread MonitorButtons();</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self waittill("Pressed_L2");</em></strong></p> <p style="text-align: center"><strong><em> if(self.menuOpen == 0)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self thread BuildMenu();</em></strong></p> <p style="text-align: center"><strong><em> self freezecontrols(true);</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> self waittill("Pressed_Melee");</em></strong></p> <p style="text-align: center"><strong><em> if(self.menuOpen == 1 && self.subsmenu == 0)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self.menuOpen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.chosen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self notify("option_checked");</em></strong></p> <p style="text-align: center"><strong><em> self freezecontrols(false);</em></strong></p> <p style="text-align: center"><strong><em> self setClientDvar( "r_blur", "0" );</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>isHost()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> if ( self getEntityNumber() == 0 ) return true;</em></strong></p> <p style="text-align: center"><strong><em> else return false;</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>BuildMenu()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> self endon("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> self setClientDvar( "r_blur", "10.3" );</em></strong></p> <p style="text-align: center"><strong><em> menu = spawnStruct();</em></strong></p> <p style="text-align: center"><strong><em> menu.option = [];</em></strong></p> <p style="text-align: center"><strong><em> menu.function = [];</em></strong></p> <p style="text-align: center"><strong><em> display = [];</em></strong></p> <p style="text-align: center"><strong><em> self.chosen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.menuOpen = 1;</em></strong></p> <p style="text-align: center"><strong><em> self thread watchUp();</em></strong></p> <p style="text-align: center"><strong><em> self thread watchDown();</em></strong></p> <p style="text-align: center"><strong><em> self thread watchChosen();</em></strong></p> <p style="text-align: center"><strong><em> menu.option[0] = "^2Text Engine 1.7 - COD4 - Main Menu";</em></strong></p> <p style="text-align: center"><strong><em> menu.option[1] = "^7Main Menu";</em></strong></p> <p style="text-align: center"><strong><em> menu.function[1] = ::SubMenu1;</em></strong></p> <p style="text-align: center"><strong><em> self thread watchSelecting( menu );</em></strong></p> <p style="text-align: center"><strong><em> for(i=0;i<=menu.option.size;i++)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> display[i] = createFontString( "default", 1.5 , self );</em></strong></p> <p style="text-align: center"><strong><em> display[i] setPoint( "TOP", "TOP", 0, 5 + (i*18));</em></strong></p> <p style="text-align: center"><strong><em> display[i] setText(menu.option[i]);</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> post = self.chosen;</em></strong></p> <p style="text-align: center"><strong><em> display[self.chosen] setText("^2[ "+menu.option[self.chosen]+" ^2]");</em></strong></p> <p style="text-align: center"><strong><em> post.glowColor = (1.0, 0.0, 0.4);</em></strong></p> <p style="text-align: center"><strong><em> self waittill("option_checked");</em></strong></p> <p style="text-align: center"><strong><em> display[post] setText(menu.option[post]);</em></strong></p> <p style="text-align: center"><strong><em> wait 0.05;</em></strong></p> <p style="text-align: center"><strong><em> if(self.menuOpen == 0)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> for(f=0;f<=menu.option.size;f++)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> display[f] destroy();</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> self notify("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> } </em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>SubsMenu1()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> self endon("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> menu = spawnStruct();</em></strong></p> <p style="text-align: center"><strong><em> menu.option = [];</em></strong></p> <p style="text-align: center"><strong><em> menu.function = [];</em></strong></p> <p style="text-align: center"><strong><em> display = [];</em></strong></p> <p style="text-align: center"><strong><em> self.chosen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.menuOpen = 1;</em></strong></p> <p style="text-align: center"><strong><em> self thread watchUp();</em></strong></p> <p style="text-align: center"><strong><em> self thread watchDown();</em></strong></p> <p style="text-align: center"><strong><em> self thread watchChosen();</em></strong></p> <p style="text-align: center"><strong><em> menu.option[0] = "^2Text Engine 1.7 - COD4 - Subs Menu 1";</em></strong></p> <p style="text-align: center"><strong><em> menu.option[1] = "^7Functions 1";</em></strong></p> <p style="text-align: center"><strong><em> menu.option[2] = "^7Fov Editor";</em></strong></p> <p style="text-align: center"><strong><em> menu.function[1] = ::SubMenu1;</em></strong></p> <p style="text-align: center"><strong><em> menu.function[2] = ::FovEditor;</em></strong></p> <p style="text-align: center"><strong><em> self thread watchSelecting( menu );</em></strong></p> <p style="text-align: center"><strong><em> for(i=0;i<=menu.option.size;i++)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> display[i] = createFontString( "default", 1.5 , self );</em></strong></p> <p style="text-align: center"><strong><em> display[i] setPoint( "TOP", "TOP", 0, 5 + (i*18));</em></strong></p> <p style="text-align: center"><strong><em> display[i] setText(menu.option[i]);</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> post = self.chosen;</em></strong></p> <p style="text-align: center"><strong><em> display[self.chosen] setText("^2[ "+menu.option[self.chosen]+" ^2]");</em></strong></p> <p style="text-align: center"><strong><em> post.glowColor = (1.0, 0.0, 0.4);</em></strong></p> <p style="text-align: center"><strong><em> self waittill("option_checked");</em></strong></p> <p style="text-align: center"><strong><em> display[post] setText(menu.option[post]);</em></strong></p> <p style="text-align: center"><strong><em> wait 0.05;</em></strong></p> <p style="text-align: center"><strong><em> if(self.menuOpen == 0)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> for(f=0;f<=menu.option.size;f++)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> display[f] destroy();</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> self notify("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> } </em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>test()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> wait 0.5;</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>watchChosen()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> self endon("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self waittill("change");</em></strong></p> <p style="text-align: center"><strong><em> if(self.chosen < 1 || self.chosen > 2)</em></strong></p> <p style="text-align: center"><strong><em> { </em></strong></p> <p style="text-align: center"><strong><em> self.chosen = 2;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> self notify("option_checked");</em></strong></p> <p style="text-align: center"><strong><em> wait 0.05;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>watchUp()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> self endon("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self waittill("Pressed_L1");</em></strong></p> <p style="text-align: center"><strong><em> self.chosen--;</em></strong></p> <p style="text-align: center"><strong><em> self notify("change");</em></strong></p> <p style="text-align: center"><strong><em> wait 0.05;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>watchDown()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> self endon("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self waittill("Pressed_R1");</em></strong></p> <p style="text-align: center"><strong><em> self.chosen++;</em></strong></p> <p style="text-align: center"><strong><em> self notify("change");</em></strong></p> <p style="text-align: center"><strong><em> wait 0.05;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> } </em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>watchSelecting( menu )</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self endon("death");</em></strong></p> <p style="text-align: center"><strong><em> self endon("disconnect");</em></strong></p> <p style="text-align: center"><strong><em> self endon("menu_exit");</em></strong></p> <p style="text-align: center"><strong><em> for(;;)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self waittill("Pressed_Square");</em></strong></p> <p style="text-align: center"><strong><em> self thread [[menu.function[self.chosen]]]();</em></strong></p> <p style="text-align: center"><strong><em> wait 0.05;</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em>SubMenu1()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> if(self.menuOpen == 1 && self.subsmenu == 0)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self.menuOpen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.chosen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.subsmenu = 1;</em></strong></p> <p style="text-align: center"><strong><em> self notify("option_checked");</em></strong></p> <p style="text-align: center"><strong><em> self freezecontrols(false);</em></strong></p> <p style="text-align: center"><strong><em> wait 0.5;</em></strong></p> <p style="text-align: center"><strong><em> self thread SubsMenu1();</em></strong></p> <p style="text-align: center"><strong><em> self freezecontrols(true);</em></strong></p> <p style="text-align: center"><strong><em> self waittill("Pressed_Melee");</em></strong></p> <p style="text-align: center"><strong><em> if(self.menuOpen == 1 && self.subsmenu == 1)</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> self thread MonitorButtons();</em></strong></p> <p style="text-align: center"><strong><em> self.menuOpen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.chosen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.subsmenu = 1;</em></strong></p> <p style="text-align: center"><strong><em> self notify("option_checked");</em></strong></p> <p style="text-align: center"><strong><em> self freezecontrols(false);</em></strong></p> <p style="text-align: center"><strong><em> wait 0.5;</em></strong></p> <p style="text-align: center"><strong><em> self thread BuildMenu();</em></strong></p> <p style="text-align: center"><strong><em> self.subsmenu = 0;</em></strong></p> <p style="text-align: center"><strong><em> self freezecontrols(true);</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em>FovEditor()</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self.subsmenu = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.menuOpen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self.chosen = 0;</em></strong></p> <p style="text-align: center"><strong><em> self notify("option_checked");</em></strong></p> <p style="text-align: center"><strong><em> self freezecontrols(false);</em></strong></p> <p style="text-align: center"><strong><em> self setClientDvar( "r_blur", "0" );</em></strong></p> <p style="text-align: center"><strong><em> self thread slider( "cg_fov", 100);</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em>slider( dvar, max )</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em>curs = 0;</em></strong></p> <p style="text-align: center"><strong><em>slider["bar"] = createProBar((1,1,1),250,15,"","",0,-20);</em></strong></p> <p style="text-align: center"><strong><em>slider["value"] = createValue("default",2,"","",0,-40,1,1,curs);</em></strong></p> <p style="text-align: center"><strong><em>slider["BG"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",-200,.7);</em></strong></p> <p style="text-align: center"><strong><em>//if you add more huds use slider[- your hud here -] you dont need to add a destroy it will just destroy by its self.</em></strong></p> <p style="text-align: center"><strong><em>for(;;)</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em> self freezeControls(true);</em></strong></p> <p style="text-align: center"><strong><em> if(self attackButtonPressed() || self adsButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> {</em></strong></p> <p style="text-align: center"><strong><em> curs += (max/100*self attackButtonPressed());</em></strong></p> <p style="text-align: center"><strong><em> curs -= (max/100*self adsButtonPressed());</em></strong></p> <p style="text-align: center"><strong><em> if(curs > max)</em></strong></p> <p style="text-align: center"><strong><em> curs = 0;</em></strong></p> <p style="text-align: center"><strong><em> </em></strong></p> <p style="text-align: center"><strong><em> if(curs < 0)</em></strong></p> <p style="text-align: center"><strong><em> curs = max;</em></strong></p> <p style="text-align: center"><strong><em> </em></strong></p> <p style="text-align: center"><strong><em> self setClientDvar( dvar, curs );</em></strong></p> <p style="text-align: center"><strong><em> }</em></strong></p> <p style="text-align: center"><strong><em> if(self meleeButtonPressed())</em></strong></p> <p style="text-align: center"><strong><em> break;</em></strong></p> <p style="text-align: center"><strong><em> </em></strong></p> <p style="text-align: center"><strong><em> slider["bar"] updateBar( curs/max );</em></strong></p> <p style="text-align: center"><strong><em> slider["value"] setValue( curs );</em></strong></p> <p style="text-align: center"><strong><em> wait .05;</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em>self freezeControls(false); //you dont need this in if your entering your menu.</em></strong></p> <p style="text-align: center"><strong><em>key = getArrayKeys(slider);</em></strong></p> <p style="text-align: center"><strong><em>for(k = 0; k < key.size; k++)</em></strong></p> <p style="text-align: center"><strong><em> slider[key[k]] destroyElem();</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p> <p style="text-align: center"><strong><em>createValue( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Value )</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em>HudValue = createFontString( Font, Fontscale, self );</em></strong></p> <p style="text-align: center"><strong><em>HudValue setPoint( Align, Relative, X, Y );</em></strong></p> <p style="text-align: center"><strong><em>HudValue.alpha = Alpha;</em></strong></p> <p style="text-align: center"><strong><em>HudValue.sort = Sort;</em></strong></p> <p style="text-align: center"><strong><em>HudValue setValue( Value );</em></strong></p> <p style="text-align: center"><strong><em>self thread destroyElemOnDeath( HudValue );</em></strong></p> <p style="text-align: center"><strong><em>return HudValue;</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em>createProBar( Color, Width, Height, Align, Relative, X, Y )</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em>Bar = createBar( Color, Width, Height, self );</em></strong></p> <p style="text-align: center"><strong><em>Bar setPoint( Align, Relative, X, Y );</em></strong></p> <p style="text-align: center"><strong><em>self thread destroyElemOnDeath( Bar );</em></strong></p> <p style="text-align: center"><strong><em>return Bar;</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em>createRectangle( align, relative, x, y, width, height, color, shader, sort, alpha )</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em>barElemBG = newClientHudElem( self );</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.elemType = "bar";</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.width = width;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.height = height;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.align = align;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.relative = relative;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.xOffset = 0;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.yOffset = 0;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.children = [];</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.sort = sort;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.color = color;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.alpha = alpha;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG setParent( level.uiParent );</em></strong></p> <p style="text-align: center"><strong><em>barElemBG setShader( shader, width, height );</em></strong></p> <p style="text-align: center"><strong><em>barElemBG.hidden = false;</em></strong></p> <p style="text-align: center"><strong><em>barElemBG setPoint(align, relative, x, y);</em></strong></p> <p style="text-align: center"><strong><em>self thread destroyElemOnDeath( barElemBG );</em></strong></p> <p style="text-align: center"><strong><em>return barElemBG;</em></strong></p> <p style="text-align: center"><strong><em>}</em></strong></p> <p style="text-align: center"><strong><em>destroyElemOnDeath( elem )</em></strong></p> <p style="text-align: center"><strong><em>{</em></strong></p> <p style="text-align: center"><strong><em>self waittill("death");</em></strong></p> <p style="text-align: center"><strong><em>if(isDefined(elem.bar))</em></strong></p> <p style="text-align: center"><strong><em> elem destroyElem();</em></strong></p> <p style="text-align: center"><strong><em>else</em></strong></p> <p style="text-align: center"><strong><em> elem destroy();</em></strong></p> <p style="text-align: center"><strong><em>} [/CODE]</em></strong></p> <p style="text-align: center"><strong><em></em></strong></p></blockquote><p></p>
[QUOTE="ItsAxys, post: 3507381, member: 223185"] [CENTER][B][I]Petite release d'un Text Engine . Pas parfaits mais à vous de l'amélioré. [CODE]#include common_scripts\utility; #include maps\mp\_utility; #include maps\mp\gametypes\_hud_util; AxysInit() { level thread Connected(); } Connected() { for(;;) { level waittill( "connected", player ); player thread onPlayerSpawned(); } } onPlayerSpawned() { self waittill( "spawned_player" ); if(self isHost()) { notifyData = spawnstruct(); notifyData.titleText = "^5Project Undefined"; //Line 1 notifyData.notifyText = "^5Created By Axys"; //Line 2 notifyData.notifyText2 = "^5Learning GSC Bitch"; //Line 3 notifyData.glowalpha=1; notifyData.glowcolor=(0,0,1); notifyData.fontscale=2.5; self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData ); self thread menuEntering(); } } MonitorButtons() { self endon("death"); self endon("disconnect"); for(;;) { if(self UseButtonPressed()) { self notify("Pressed_Square"); wait .3; } if(self AttackButtonPressed()) { self notify("Pressed_R1"); wait .3; } if(self AdsButtonPressed()) { self notify("Pressed_L1"); wait .3; } if(self SecondaryOffhandButtonPressed()) { self notify("Pressed_L2"); wait .3; } if(self FragButtonPressed()) { self notify("Pressed_R2"); wait .3; } if(self MeleeButtonPressed()) { self notify("Pressed_Melee"); wait .3; } wait .05; } } menuEntering() { self endon("death"); self endon("disconnect"); self.menuOpen = 0; self.subsmenu = 0; self.aim = false; self.god = false; self.jump = false; self.speed = false; self thread MonitorButtons(); for(;;) { self waittill("Pressed_L2"); if(self.menuOpen == 0) { self thread BuildMenu(); self freezecontrols(true); } self waittill("Pressed_Melee"); if(self.menuOpen == 1 && self.subsmenu == 0) { self.menuOpen = 0; self.chosen = 0; self notify("option_checked"); self freezecontrols(false); self setClientDvar( "r_blur", "0" ); } } } isHost() { if ( self getEntityNumber() == 0 ) return true; else return false; } BuildMenu() { self endon("death"); self endon("disconnect"); self endon("menu_exit"); self setClientDvar( "r_blur", "10.3" ); menu = spawnStruct(); menu.option = []; menu.function = []; display = []; self.chosen = 0; self.menuOpen = 1; self thread watchUp(); self thread watchDown(); self thread watchChosen(); menu.option[0] = "^2Text Engine 1.7 - COD4 - Main Menu"; menu.option[1] = "^7Main Menu"; menu.function[1] = ::SubMenu1; self thread watchSelecting( menu ); for(i=0;i<=menu.option.size;i++) { display[i] = createFontString( "default", 1.5 , self ); display[i] setPoint( "TOP", "TOP", 0, 5 + (i*18)); display[i] setText(menu.option[i]); } for(;;) { post = self.chosen; display[self.chosen] setText("^2[ "+menu.option[self.chosen]+" ^2]"); post.glowColor = (1.0, 0.0, 0.4); self waittill("option_checked"); display[post] setText(menu.option[post]); wait 0.05; if(self.menuOpen == 0) { for(f=0;f<=menu.option.size;f++) { display[f] destroy(); } self notify("menu_exit"); } } } SubsMenu1() { self endon("death"); self endon("disconnect"); self endon("menu_exit"); menu = spawnStruct(); menu.option = []; menu.function = []; display = []; self.chosen = 0; self.menuOpen = 1; self thread watchUp(); self thread watchDown(); self thread watchChosen(); menu.option[0] = "^2Text Engine 1.7 - COD4 - Subs Menu 1"; menu.option[1] = "^7Functions 1"; menu.option[2] = "^7Fov Editor"; menu.function[1] = ::SubMenu1; menu.function[2] = ::FovEditor; self thread watchSelecting( menu ); for(i=0;i<=menu.option.size;i++) { display[i] = createFontString( "default", 1.5 , self ); display[i] setPoint( "TOP", "TOP", 0, 5 + (i*18)); display[i] setText(menu.option[i]); } for(;;) { post = self.chosen; display[self.chosen] setText("^2[ "+menu.option[self.chosen]+" ^2]"); post.glowColor = (1.0, 0.0, 0.4); self waittill("option_checked"); display[post] setText(menu.option[post]); wait 0.05; if(self.menuOpen == 0) { for(f=0;f<=menu.option.size;f++) { display[f] destroy(); } self notify("menu_exit"); } } } test() { wait 0.5; } watchChosen() { self endon("death"); self endon("disconnect"); self endon("menu_exit"); for(;;) { self waittill("change"); if(self.chosen < 1 || self.chosen > 2) { self.chosen = 2; } self notify("option_checked"); wait 0.05; } } watchUp() { self endon("death"); self endon("disconnect"); self endon("menu_exit"); for(;;) { self waittill("Pressed_L1"); self.chosen--; self notify("change"); wait 0.05; } } watchDown() { self endon("death"); self endon("disconnect"); self endon("menu_exit"); for(;;) { self waittill("Pressed_R1"); self.chosen++; self notify("change"); wait 0.05; } } watchSelecting( menu ) { self endon("death"); self endon("disconnect"); self endon("menu_exit"); for(;;) { self waittill("Pressed_Square"); self thread [[menu.function[self.chosen]]](); wait 0.05; } } SubMenu1() { if(self.menuOpen == 1 && self.subsmenu == 0) { self.menuOpen = 0; self.chosen = 0; self.subsmenu = 1; self notify("option_checked"); self freezecontrols(false); wait 0.5; self thread SubsMenu1(); self freezecontrols(true); self waittill("Pressed_Melee"); if(self.menuOpen == 1 && self.subsmenu == 1) { self thread MonitorButtons(); self.menuOpen = 0; self.chosen = 0; self.subsmenu = 1; self notify("option_checked"); self freezecontrols(false); wait 0.5; self thread BuildMenu(); self.subsmenu = 0; self freezecontrols(true); } } } FovEditor() { self.subsmenu = 0; self.menuOpen = 0; self.chosen = 0; self notify("option_checked"); self freezecontrols(false); self setClientDvar( "r_blur", "0" ); self thread slider( "cg_fov", 100); } slider( dvar, max ) { curs = 0; slider["bar"] = createProBar((1,1,1),250,15,"","",0,-20); slider["value"] = createValue("default",2,"","",0,-40,1,1,curs); slider["BG"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",-200,.7); //if you add more huds use slider[- your hud here -] you dont need to add a destroy it will just destroy by its self. for(;;) { self freezeControls(true); if(self attackButtonPressed() || self adsButtonPressed()) { curs += (max/100*self attackButtonPressed()); curs -= (max/100*self adsButtonPressed()); if(curs > max) curs = 0; if(curs < 0) curs = max; self setClientDvar( dvar, curs ); } if(self meleeButtonPressed()) break; slider["bar"] updateBar( curs/max ); slider["value"] setValue( curs ); wait .05; } self freezeControls(false); //you dont need this in if your entering your menu. key = getArrayKeys(slider); for(k = 0; k < key.size; k++) slider[key[k]] destroyElem(); } createValue( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Value ) { HudValue = createFontString( Font, Fontscale, self ); HudValue setPoint( Align, Relative, X, Y ); HudValue.alpha = Alpha; HudValue.sort = Sort; HudValue setValue( Value ); self thread destroyElemOnDeath( HudValue ); return HudValue; } createProBar( Color, Width, Height, Align, Relative, X, Y ) { Bar = createBar( Color, Width, Height, self ); Bar setPoint( Align, Relative, X, Y ); self thread destroyElemOnDeath( Bar ); return Bar; } createRectangle( align, relative, x, y, width, height, color, shader, sort, alpha ) { barElemBG = newClientHudElem( self ); barElemBG.elemType = "bar"; barElemBG.width = width; barElemBG.height = height; barElemBG.align = align; barElemBG.relative = relative; barElemBG.xOffset = 0; barElemBG.yOffset = 0; barElemBG.children = []; barElemBG.sort = sort; barElemBG.color = color; barElemBG.alpha = alpha; barElemBG setParent( level.uiParent ); barElemBG setShader( shader, width, height ); barElemBG.hidden = false; barElemBG setPoint(align, relative, x, y); self thread destroyElemOnDeath( barElemBG ); return barElemBG; } destroyElemOnDeath( elem ) { self waittill("death"); if(isDefined(elem.bar)) elem destroyElem(); else elem destroy(); } [/CODE] [/I][/B][/CENTER] [/QUOTE]
Insérer les citations…
Vérification
Publier la réponse
Forums
Jeux-vidéos
Call of Duty
Call Of Duty (Ancienne Section en modération )
GSC - Text Engine By Axys
Ce site utilise des cookies. En continuant à utiliser ce site, vous acceptez l'utilisation des cookies.
Acceptez
En savoir plus.…
Haut