Armes Directes

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

Armes Directes

Message par Sajuuk le Mar 15 Avr 2008 - 12:48

Voila un autre tuto, concernant cette fois ci les armes dites "directes", qui sont directement sur le vaisseau, sur un emplacement précis, indiqué dans le hod:
---------------------------------------------------------------------------
--------------------- ARMES DIRECTES -------------------
---------------------------------------------------------------------------
Description
StartShipWeaponConfig is called within a .ship file, while StartSubSystemWeaponConfig is called within a .subs file. These functions give a ship or subsystem a weapon, and are called once per weapon mounted on the ship, although turrets with two barrels must only call this function once despite the turret effectively having two weapons. A ship or subsystem may have more than one weapon fire from the same hardpoint and use the same or different animation. However, a ship or subsystem should not have more than one weapon mounted in the same turret, as each weapon will attempt to control the rotation and elevation of the turret separately, often preventing all weapons from firing in that turret. Only weapons of the type Gimble or Fixed can safely fire from the same hardpoint (see the StartWeaponConfig function).

Example
StartShipWeaponConfig(NewShipType, "Hgn_KineticAutoGun", "Weapon_FrontGun", "Fire")
StartSubSystemWeaponConfig(NewSubSystemType, "Hgn_BattleCruiserTurretedIonCannon", "Weapon_IonCan1", "Weapon_IonCan1")

Arguments

1. and : Reference to the ship or subsystem. Generally, this will be NewShipType or NewSubSystemType, respectively.
2. : The weapon to be mounted in the indicated sHardpoint. The value corresponds to the base name of the .wepn file.
3. : The node on the model from where the weapon will fire, as coded in the ship's .hod file.
4. : The name given to one of the animations defined in the ship's .events file. The animation provides the muzzle flash, sound of firing, and other special effects related to firing.

_________________
{Mes Vidéos} Config Pc:
Cpu : Amd Athlon 64 X2 4800+ Dual Core 2,50 GHz Cache L1 256 Ko L2 1 Mo Bus HT 2000 MHz
Ram : Corsair 3 Go XMS2 DDR2 800 MHz Pc 6400 (2x 512 Mo + 2x 1 Go)
Cg : Albatron nVidia GeForce 8600Gt Ram 512 Mo 400 MHz DDRII Gpu 540 MHz 128 Bits Shaders 1200 MHz - Pci-E
avatar
Sajuuk
Dévelopeur
Dévelopeur

Nombre de messages : 1479
Age : 21
Humeur : En forme!
Date d'inscription : 01/09/2007

Voir le profil de l'utilisateur

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