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.