HALF-LIFE PORTAL
Your Gate To Valve's Games www.hl-forum.de
PORTAL
FORUM
LOGIN
User oder E-mail:


Passwort:


oder
Registrieren
Passwort vergessen?
OpenID-Login
MISC
PARTNER

TF2 Crafting

Special Artworks by
Hayungs

Link us:
HL PORTAL

Support us:


HLPortal
auf Facebook

›› Willkommen!   ›› 95.015.278 Visits   ›› 18.316 registrierte User   ›› 16 Besucher online (0 auf dieser Seite)
23.789 Themen, 325.181 Beiträge  
    FORUM 

Thema-Ansicht


Forum > Editing > Mapping - Tutorials > [Tutorials]CS:S Waffen Entites im Hammer mit Munition!
Status: Offen
2 Beiträge
Letzter Beitrag Seiten (1):  [1]


Autor Beitrag
# 1
Nachricht offline
Bullsquid
1.036 Punkte
Dabei seit: 27.06.2007
147 Beiträge
[Tutorials]CS:S Waffen Entites im Hammer mit Munition!
In diesem Tutorial werde ich euch zeigen wie man die cstrike.fdg umschreben muss damit die Waffen Entites die ClassInfo "Munition" haben.

Also ihr öffnet den ordner Steam/SteamApps/euer_steam_name/sourcesdk/bin und öffnet die cstrike.fdg mit dem Texteditor. Dann sucht ihr die Stelle wo
Zitat:
//-------------------------------------------------------------------------
//
// Weapons
//
//-------------------------------------------------------------------------


steht.

Dann müsst ihr nur noch den Teil bis
Zitat:
//-------------------------------------------------------------------------
//
// Solid Classes
//
//-------------------------------------------------------------------------


löchen und dafür das folgende eintragen:
Zitat:
//-------------------------------------------------------------------------
//
// Weapons with ammo
//
//-------------------------------------------------------------------------

@PointClass base(Weapon) studio("models/weapons/w_knife_t.mdl") = weapon_knife : "Knife" []

@PointClass base(Weapon) studio("models/weapons/w_eq_fraggrenade.mdl") = weapon_flashbang : "Flashbang" []
@PointClass base(Weapon) studio("models/weapons/w_eq_fraggrenade.mdl") = weapon_hegrenade : "HE Grenade" []
@PointClass base(Weapon) studio("models/weapons/w_eq_smokegrenade.mdl") = weapon_smokegrenade : "Smoke Grenade" []

@PointClass base(Weapon) studio("models/weapons/w_defuser.mdl") = item_defuser : "Defuse Kit" []
@PointClass base(Weapon) studio("models/weapons/w_c4.mdl") = weapon_c4 : "C4 Bomb" []


@PointClass base(Weapon) studioprop("models/weapons/w_pist_glock18.mdl") = weapon_glock : "9x19mm Sidearm"
[
ammo(integer) : "Ammo" : 120 : "Number of bullets which this weapon has. The orginal number of bullets is 120. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_pist_usp.mdl") = weapon_usp : "K&M .45 Tactical"
[
ammo(integer) : "Ammo" : 100 : "Number of bullets which this weapon has. The orginal number of bullets is 100. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_pist_p228.mdl") = weapon_p228 : "228 Compact"
[
ammo(integer) : "Ammo" : 52 : "Number of bullets which this weapon has. The orginal number of bullets is 52. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_pist_deagle.mdl") = weapon_deagle : "Night Hawk .50C"
[
ammo(integer) : "Ammo" : 35 : "Number of bullets which this weapon has. The orginal number of bullets is 35. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_pist_fiveseven.mdl") = weapon_fiveseven : "ES Five-Seven"
[
ammo(integer) : "Ammo" : 100 : "Number of bullets which this weapon has. The orginal number of bullets is 100. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_pist_elite.mdl") = weapon_elite : ".40 Dual Elites"
[
ammo(integer) : "Ammo" : 120 : "Number of bullets which this weapon has. The orginal number of bullets is 120. The number of bullets is changeable."
]



@PointClass base(Weapon) studioprop("models/weapons/w_shot_m3super90.mdl") = weapon_m3 : "Leone 12 Gauge Super"
[
ammo(integer) : "Ammo" : 32 : "Number of bullets which this weapon has. The orginal number of bullets is 32. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_shot_xm1014.mdl") = weapon_xm1014 : "Leone YG1265 Auto Shotgun"
[
ammo(integer) : "Ammo" : 32 : "Number of bullets which this weapon has. The orginal number of bullets is 32. The number of bullets is changeable."
]



@PointClass base(Weapon) studioprop("models/weapons/w_smg_tmp.mdl") = weapon_tmp : "Schmidt Machine Pistol"
[
ammo(integer) : "Ammo" : 120 : "Number of bullets which this weapon has. The orginal number of bullets is 120. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_smg_mp5.mdl") = weapon_mp5navy : "K&M Sub-Machine Gun"
[
ammo(integer) : "Ammo" : 120 : "Number of bullets which this weapon has. The orginal number of bullets is 120. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_smg_ump45.mdl") = weapon_ump45 : "K&M UMP45"
[
ammo(integer) : "Ammo" : 100 : "Number of bullets which this weapon has. The orginal number of bullets is 100. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_smg_p90.mdl") = weapon_p90 : "ES C90"
[
ammo(integer) : "Ammo" : 100 : "Number of bullets which this weapon has. The orginal number of bullets is 100. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_smg_mac10.mdl") = weapon_mac10 : "Ingram MAC-10"
[
ammo(integer) : "Ammo" : 100 : "Number of bullets which this weapon has. The orginal number of bullets is 100. The number of bullets is changeable."
]



@PointClass base(Weapon) studioprop("models/weapons/w_rif_galil.mdl") = weapon_galil : "IDF Defender"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_rif_ak47.mdl") = weapon_ak47 : "CV-47"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_rif_sg552.mdl") = weapon_sg552 : "Krieg 552 Commando"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_rif_famas.mdl") = weapon_famas : "Clarion 5.56"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_rif_m4a1.mdl") = weapon_m4a1 : "Maverick M4A1 Carbine"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_rif_aug.mdl") = weapon_aug : "Bullpup"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]



@PointClass base(Weapon) studioprop("models/weapons/w_snip_scout.mdl") = weapon_scout : "Schmidt Scout"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_snip_g3sg1.mdl") = weapon_g3sg1 : "D3/AU-1 Semi-Auto Sniper Rifle"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_snip_sg550.mdl") = weapon_sg550 : "Krieg 550 Commando"
[
ammo(integer) : "Ammo" : 90 : "Number of bullets which this weapon has. The orginal number of bullets is 90. The number of bullets is changeable."
]

@PointClass base(Weapon) studioprop("models/weapons/w_snip_awp.mdl") = weapon_awp : "Magnum Sniper Rifle"
[
ammo(integer) : "Ammo" : 30 : "Number of bullets which this weapon has. The orginal number of bullets is 30. The number of bullets is changeable."
]



@PointClass base(Weapon) studioprop("models/weapons/w_mach_m249para.mdl") = weapon_m249 : "ES M249 Para"
[
ammo(integer) : "Ammo" : 200 : "Number of bullets which this weapon has. The orginal number of bullets is 200. The number of bullets is changeable."
]



@PointClass base(Weapon) = item_kevlar : "Kevlar; is in-game invisible, but it can be picked up." []
@PointClass base(Weapon) = item_assaultsuit : "Assault Suit (Kevlar + helmet); is in-game invisible, but it can be picked up." []
@PointClass base(Weapon) = item_nvgs : "Nightvision; is in-game invisible, but it can be picked up." []


Wenn ihr jetzt den Hammer startet und ein weapon_ Entity baut hat dieses bei ClassInfo die Eigenschafft "Ammo". Es steht immer die Anzahl da die die Waffe im Spiel hat, wenn man sie kauft. Die Anzahl an Munition kann belibig geändert werden.

Auserdem kann man nun item_kevlar(Schutzweste), item_assaultsuit(Schutzeste + Helm), Item_defuser(Entschärfungs Kit) und item_nvgs(Nachtsichtgerät) bauen. Aber bis auf das Entschärfungs Kit kann man die andern item_ Entities im Spiel nicht sehn, da es für die keine Models gibt.
[Beitrag wurde 3x editiert, zuletzt von EZ-one am 08.11.2007, 18:21]
14.10.2007, 21:52 Uhr Anzeigen
# 2
Nachricht offline
Headcrab
0 Punkte
Dabei seit: 18.10.2007
28 Beiträge
Hey danke wollte ich schon seit längerem mal wissen :)
Probier es nachher gleich mal aus.
31.10.2007, 12:03 Uhr Anzeigen
nach oben
2 Beiträge

Seiten (1):  [1]


Gehe zu:  feed_mini Beiträge: RSS, RSS2, ATOM

Sections:  HLP  Board  Mods  Steam      Games:  HL  Op4  HLBS  HL2  HL2:Ep1  HL2:Ep2  Prtl  TF2  TFC  CS  DoD  L4D  Gunman
    USER ONLINE 
Insgesamt sind 16 Benutzer online. Davon sind 0 registriert:
    SITE OPTIONS 
- Zu Favoriten hinzufügen
- Als Startseite festlegen (IE only)
- Fehler auf dieser Seite?