Rechercher
 
 

Résultats par :
 


Rechercher Recherche avancée

Derniers sujets
» FR-mapping ! ouverture du site prochainement
par Wolf_silver Jeu 28 Nov - 17:19

» Nightmare prend les commandes
par Wolf_silver Mer 27 Nov - 15:49

» SITE HEBERGER FERME !
par Razor1700 Ven 25 Mai - 13:36

» problème de motivation
par Enzotoy Dim 25 Oct - 20:33

» [FR-Mapping mod]Changer soi-même son menu principale!!
par Wolf_silver Sam 24 Oct - 17:19

Le deal à ne pas rater :
Jeux, jouets et Lego : le deuxième à -50% (large sélection)
Voir le deal

Ajouter George roméro de Cal of the dead

Voir le sujet précédent Voir le sujet suivant Aller en bas

Ajouter George roméro de Cal of the dead Empty Ajouter George roméro de Cal of the dead

Message par Wolf_silver Mer 24 Juin - 2:28

Hello, Ce tuto va vous permettre d'ajouter Roméro de bo1 à votre map

Tout d'abord téléchargez [Vous devez être inscrit et connecté pour voir ce lien]

et prenez le .iwd et le localized et mettez le dans votre map (pensez à renommez le localized en localized_nazi_zombie_???)

Copiez (si ce n'est pas déjà fait) _zombiemode_spawner.gsc qui se trouve dans raw/maps dans mods/nazi_zombie_???/maps

et recherchez la fonction "zombie_spawn_init()" et remplacez toute la fonction par:
Code:
zombie_spawn_init( animname_set )
{
   if( !isDefined( animname_set ) )
   {
      animname_set = false;
   }
   
   self.targetname = "zombie";
   self.script_noteworthy = undefined;

   if( !animname_set )
   {
      self.animname = "zombie";       
   }
   self.ignoreall = true;
   self.allowdeath = true;          // allows death during animscripted calls
   self.gib_override = true;       // needed to make sure this guy does gibs
   self.is_zombie = true;          // needed for melee.gsc in the animscripts
   self.has_legs = true;          // Sumeet - This tells the zombie that he is allowed to stand anymore or not, gibbing can take
                           // out both legs and then the only allowed stance should be prone.
   self allowedStances( "stand" );

   self.gibbed = false;
   self.head_gibbed = false;
   self.boss = false;
   
   // might need this so co-op zombie players cant block zombie pathing
   self PushPlayer( true );
//   self.meleeRange = 128;
//   self.meleeRangeSq = anim.meleeRange * anim.meleeRange;
   
   animscripts\shared::placeWeaponOn( self.primaryweapon, "none" );
   
   // This isn't working, might need an "empty" weapon
   //self animscripts\shared::placeWeaponOn( self.weapon, "none" );

   self.disableArrivals = true;
   self.disableExits = true;
   self.grenadeawareness = 0;
   self.badplaceawareness = 0;

   self.ignoreSuppression = true;    
   self.suppressionThreshold = 1;
   self.noDodgeMove = true;
   self.dontShootWhileMoving = true;
   self.pathenemylookahead = 0;

   self.badplaceawareness = 0;
   self.chatInitialized = false;

   self disable_pain();

   self.dropweapon = false;
   level thread zombie_death_event( self );

   // We need more script/code to get this to work properly
//   self add_to_spectate_list();
   self random_tan();
   self set_zombie_run_cycle();
   self thread zombie_think();
   self thread zombie_gib_on_damage();
   self thread zombie_damage_failsafe();
   
   if (level.bosses_alive < level.boss_total)
   {
   
      rand = randomintrange( 1000 );
      
      if( rand >= level.boss_chance )
      {
      
         if( level.boss_ready == true )
         {
      
            players = get_players();
         
            newhealth = players.size * level.boss_health;
            self.maxhealth = level.zombie_health * newhealth;
            self.health = level.zombie_health * newhealth;
            self.boss = true;
            level.bosses_alive++;
            
         }
         else
         {
         
            self.maxhealth = level.zombie_health;
            self.health = level.zombie_health;
            
         }
         
      }
      else
      {
      
         self.maxhealth = level.zombie_health;
         self.health = level.zombie_health;
      
      }
      
   }
   else
   {
      
      self.maxhealth = level.zombie_health;
      self.health = level.zombie_health;
      
   }
   
   // MM - mixed zombies test
//    if ( flag( "crawler_round" ) ||
//        ( IsDefined( level.mixed_rounds_enabled ) && level.mixed_rounds_enabled == 1 &&
//          level.zombie_total > 10 &&
//          level.round_number > 5 && RandomInt(100) < 10 ) )
//    {
//       self thread make_crawler();
//    }

//   self thread zombie_head_gib();
   self thread delayed_zombie_eye_glow();   // delayed eye glow for ground crawlers (the eyes floated above the ground before the anim started)
   
   if (self.boss == true)
   {
   
      self setModel("bo1_c_zom_george_romero_zombiefied_fb");
   
   }
   
   self.deathFunction = ::zombie_death_animscript;
   self.flame_damage_time = 0;
   
   self zombie_history( "zombie_spawn_init -> Spawned = " + self.origin );

   self notify( "zombie_init_done" );
}

Maintenant ajoutez à la fonction init() (tout en haut du fichier):
Code:
   ///////////////////// Start Boss Variables (you can edit anything between these commented lines) ////////////////////////
   
   level.boss_total = 1; // Total number of bosses able to spawn in a round.
   level.boss_chance  = 1; // The chance of a boss spawning in a round. (VALUE MUST BE IN BETWEEN 0 AND 1000!!!) Higher values mean less of a chance, while lower values mean a higher chance.
   level.boss_health = 25; // The factor that the boss' healths are determined by. Higher values mean higher health and vice versa.
   
   //////////////////////////////// End Boss Variables (DON'T EDIT ANYTHING ANYMORE!!!) ////////////////////////////////////
   
   level.bosses_alive = 0;

Copiez (si ce n'est pas déjà fait) _zombiemode.gsc qui se trouve dans raw/maps dans mods/nazi_zombie_???/maps
recherchez:
Code:
precache_models()
{
   precachemodel( "char_ger_honorgd_zomb_behead" );
   precachemodel( "char_ger_zombieeye" );
   PrecacheModel( "tag_origin" );
}

ajoutez juste en dessous du dernier PrecacheModel (celui avec tag_origin):
Code:
precachemodel( "bo1_c_zom_george_romero_zombiefied_fb" );

dans la fonction main() rajoutez :
Code:
   level.boss_ready = true;
   level thread boss_check();
Et ajoutez tout en bas du fichier:
Code:
boss_check()
{

   while( 1 )
   {
   
      if( level.bosses_alive >= level.boss_total )
      {
      
         level.boss_ready = false;
         level waittill("between_round_over");
         level.bosses_alive = 0;
         level.boss_ready = true;
         
      }
      else
      {
      
      }
      
      wait( 0.01 );
      
   }
   
}

et voilà!
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Ven 26 Juin - 18:32

Le tuto à été testé et il fonctionne parfaitement!

Petit bonus:

Recherchez dans _zombiemode_spawner.gsc:
Code:
   ///////////////////// Start Boss Variables (you can edit anything between these commented lines) ////////////////////////
  
   level.boss_total = 1; // Total number of bosses able to spawn in a round.
   level.boss_chance  = 1; // The chance of a boss spawning in a round. (VALUE MUST BE IN BETWEEN 0 AND 1000!!!) Higher values mean less of a chance, while lower values mean a higher chance.
   level.boss_health = 25; // The factor that the boss' healths are determined by. Higher values mean higher health and vice versa.


remplacez le 1 de:
Code:
   level.boss_total = 1; // Total number of bosses able to spawn in a round.

par le nombre de roméro qui peuvent spawner dans une même manche

Maintenant remplacer le 1 de:
Code:
   level.boss_chance  = 1; // The chance of a boss spawning in a round. (VALUE MUST BE IN BETWEEN 0 AND 1000!!!) Higher values mean less of a chance, while lower values mean a higher chance.

C'est le nombre de chance qu'a roméro de spawner dans une manche, doit être compris entre 0 et 1000 (plus le chiffre est petit plus roméro à de chance de spawner)

Et enfin remplacez le 25 de:
Code:
  level.boss_health = 25; // The factor that the boss' healths are determined by. Higher values mean higher health and vice versa.

Par le multiplicateur de vie par rapport  au zombie classique donc par défault roméro a 25 fois plus de vie qu'un zombie
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par mattdu53 Ven 26 Juin - 19:42

Merci beaucoup Wolf_silver ! Smile
mattdu53
mattdu53
Prestige 5
Prestige 5

Messages : 58
Réputation : 0
Date d'inscription : 28/04/2015

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Ven 26 Juin - 19:43

de rien ça me fait plaisir ^^
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par mattdu53 Sam 27 Juin - 16:38

Pour moi il spawn TOUJOURS à partir de la manche 2, comment on fait pour qu'il spawn à partir de la manche 5 ?
mattdu53
mattdu53
Prestige 5
Prestige 5

Messages : 58
Réputation : 0
Date d'inscription : 28/04/2015

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Sam 27 Juin - 16:56

Recherche ça dans _zombiemode.gsc:
Code:
level.boss_ready = true;
   level thread boss_check();

transforme le en:
Code:
   while(1)
   {
   level waittill("between_round_over");
   if(level.round_number >= 5)
   {
      level.boss_ready = true;
                level thread boss_check();
      break;
   }
}
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Razor1700 Sam 27 Juin - 17:18

Je sais que je vais être un peu chiant mais est-il possible d'ajouter a ça que lors de ça mort il donne un atout aléatoire plus un tesla_gun comme dans le jeu drunken
Razor1700
Razor1700
Prestige 13
Prestige 13

Messages : 386
Réputation : 1
Date d'inscription : 25/04/2015
Age : 26
Localisation : Moselle

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Sam 27 Juin - 17:19

c'est prévu que je le fasse plus tard ^^
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Razor1700 Sam 27 Juin - 17:22

Et aussi qu'il aille moins vite qu'un zombie normale(2x) mais que lorsqu'il s'énerve(damage) il aille 1.5x plus vite Very Happy
Razor1700
Razor1700
Prestige 13
Prestige 13

Messages : 386
Réputation : 1
Date d'inscription : 25/04/2015
Age : 26
Localisation : Moselle

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Sam 27 Juin - 17:23

je note ; je note Wink mais ça ne sera pas dans l'immédiat
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par mattdu53 Sam 27 Juin - 17:26

Wolf_silver a écrit:Recherche ça dans _zombiemode.gsc:
Code:
level.boss_ready = true;
   level thread boss_check();

transforme le en:
Code:
   while(1)
   {
   level waittill("between_round_over");
   if(level.round_number >= 5)
   {
      level.boss_ready = true;
                level thread boss_check();
      break;
   }
}

Petit problème après avoir modifier :/

[Vous devez être inscrit et connecté pour voir ce lien]
mattdu53
mattdu53
Prestige 5
Prestige 5

Messages : 58
Réputation : 0
Date d'inscription : 28/04/2015

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Sam 27 Juin - 17:36

mmm peut-tu me poster ta fonction main()?
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par mattdu53 Sam 27 Juin - 17:42

Wolf_silver a écrit:mmm peut-tu me poster ta fonction main()?

level.boss_ready = true;
level thread boss_check();

boss_check()
{

while(1)
{
level waittill("between_round_over");
if(level.round_number >= 5)
{
level.boss_ready = true;
level thread boss_check();
break;
}
}
mattdu53
mattdu53
Prestige 5
Prestige 5

Messages : 58
Réputation : 0
Date d'inscription : 28/04/2015

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Sam 27 Juin - 17:57

Code:

while(1)
{
level waittill("between_round_over");
if(level.round_number >= 5)
{
level.boss_ready = true;
level thread boss_check();
break;
}
}

Supprime ce que tu as déja mis et met ça à la place à la fin de la fonction main()
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par mattdu53 Sam 27 Juin - 18:32

Ouais non ça marche pas :/ Je l'ai mis à la fin de la fonction main()

ça me met ça : [Vous devez être inscrit et connecté pour voir ce lien]

Et j'ai enlever ce que j'ai déjà mis, et j'ai mis ça :

boss_check()
{

while(1)
{
level waittill("between_round_over");
if(level.round_number >= 5)
{
level.boss_ready = true;
level thread boss_check();
break;
}
}

Essaye tu verra il y à un problème :/

(J'ai essayé SANS et AVEC)!
"boss_check()
{"
mattdu53
mattdu53
Prestige 5
Prestige 5

Messages : 58
Réputation : 0
Date d'inscription : 28/04/2015

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Sam 27 Juin - 18:36

mais ne met pas ça :
Code:
boss_check()
{

lol tu insiste
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par mattdu53 Sam 27 Juin - 19:12

Wolf_silver a écrit:mais ne met pas ça :
Code:
boss_check()
{

lol tu insiste

Je l'ai enlevé mais il me met toujours "Bad Syntax" Essaye de ton coté il doit avoir une erreur. Désolé d'être chiant !
mattdu53
mattdu53
Prestige 5
Prestige 5

Messages : 58
Réputation : 0
Date d'inscription : 28/04/2015

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Wolf_silver Sam 27 Juin - 22:50

essaye de mettre /developer 1 car là je ne peux pas test je ne suis pas chez moi Sad

Désolé d'être chiant !

Mais non tkt Wink
Wolf_silver
Wolf_silver
Administrateur
Administrateur

Messages : 947
Réputation : 4
Date d'inscription : 23/04/2015
Age : 25
Localisation : Pontault-Combault, île de France

https://frmappingcod5.forumgaming.fr

Revenir en haut Aller en bas

Ajouter George roméro de Cal of the dead Empty Re: Ajouter George roméro de Cal of the dead

Message par Contenu sponsorisé


Contenu sponsorisé


Revenir en haut Aller en bas

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum