.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   HLČ Engine Mapping (http://forums.bots-united.com/forumdisplay.php?f=65)
-   -   he_city_b1 (http://forums.bots-united.com/showthread.php?t=3466)

dead bwoy 23-01-2005 17:15

he_city_b1
 
That's right, I've done a quick little nade map!
You are probably aware of the bug in fy_ maps that make laid out weapons dissappear soon after a new round starts... Well, I made a custom fgd, which uses a game_weapon_strip, trigger_multiple, and info_player_equip, and used these on these little nade boxes. Just run up to the nade box to get a nade!
Lemme know what you guys think, or how I could do this better.
Thanks,
- DEAD
Here's some screens:
http://img.photobucket.com/albums/v1...e_city0005.jpg
http://img.photobucket.com/albums/v1...e_city0004.jpg
http://img.photobucket.com/albums/v1...e_city0003.jpg
http://img.photobucket.com/albums/v1...e_city0002.jpg

sfx1999 23-01-2005 19:17

Re: he_city_b1
 
Please elaborate on your method, because I know someone who really needs this information. NIPPER's he_dodgeball stopped working, and he would love to know this.

dead bwoy 23-01-2005 20:57

Re: he_city_b1
 
I added this to my base.fgd:
Code:

@PointClass base(Targetname) size(-8 -8 -8, 8 8 8) = game_player_equip : "An entity that gives equipment to the player who activates it. To use, add new keys to this entity, where each key is the classname of a weapon/item, and the corresponding value is the number of those weapons/items to give to the player who uses this entity. If the 'Use Only' spawnflag isn't set, then players can just touch this entity to get the equipment."
[
master(string) : "Team Master"
spawnflags(flags) =
[
1: "Use Only" : 0
]
weapon_knife (choices) : "Give Knife" : 0 =
[
0: "No"
1: "Yes"
]
weapon_usp (choices) : "Give USP45 (45acp Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_glock18 (choices) : "Give Glock 18 (9mm Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_deagle (choices) : "Give Desert Eagle (50ae Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_p228 (choices) : "Give P-228 (357sig Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_elite (choices) : "Give Beretta Elites (9mm Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_fiveseven (choices) : "Give Five-Seven (57mm Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_m3 (choices) : "Give Benelli M3 (12 Gauge)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_xm1014 (choices) : "Give Benelli XM1014 (12 Gauge)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_mp5navy (choices) : "Give MP5/Navy (9mm Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_tmp (choices) : "Give TMP (9mm Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_p90 (choices) : "Give FN P90 (57mm Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_mac10 (choices) : "Give Mac-10 (45acp Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_ump45 (choices) : "Give UMP 45 (45acp Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_ak47 (choices) : "Give AK-47 (762nato Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_sg552 (choices) : "Give SG552 (556nato Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_m4a1 (choices) : "Give M4A1 (556nato Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_aug (choices) : "Give Aug (556nato Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_scout (choices) : "Give Scout (762nato Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_awp (choices) : "Give AWP (338magnum Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_g3sg1 (choices) : "Give G3/SG-1 (762nato Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_sg550 (choices) : "Give SG550 (556nato Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_m249 (choices) : "Give M249 (556natobox Calibre)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_famas (choices) : "CS 1.6 Famas (762nato)" : 0 =
[
0: "No"
1: "Yes"
]
weapon_galil (choices) : "CS 1.6 Galil (556natobox)" : 0 =
[
0: "No"
1: "Yes"
]
item_kevlar (choices) : "Give Kevlar Vest" : 0 =
[
0: "No"
1: "Yes"
]
item_assaultsuit (choices) : "Give Kevlar Vest+Ballistic Helmet" : 0 =
[
0: "No"
1: "Yes"
]
weapon_flashbang (choices) : "Give Flash Bang" : 0 =
[
0: "No"
1: "1"
2: "2"
]
weapon_hegrenade (choices) : "Give High-Explosive Grenade" : 0 =
[
0: "No"
1: "Yes"
]
weapon_smokegrenade (choices) : "Give Smoke Grenade" : 0 =
[
0: "No"
1: "Yes"
]
item_thighpack (choices) : "Give Defuse Kit" : 0 =
[
0: "No"
1: "Yes"
]
weapon_c4 (choices) : "Give C4 Plastique Bomb" : 0 =
[
0: "No"
1: "Yes"
]
ammo_9mm (choices) : "Give 9mm Parabellum Ammo" : 0 =
[
0: "No"
1: "1 Clip (30 Bullets Per Clip)"
2: "2 Clips"
3: "3 Clips (Fill Glock 18)"
4: "4 Clips (Fill Elites, MP5 & TMP)"
]
ammo_45acp (choices) : "Give .45 ACP Ammo" : 0 =
[
0: "No"
1: "1 Clip (12 Bullets Per Clip)"
2: "2 Clips"
3: "3 Clips"
4: "4 Clips (Fill USP45)"
5: "5 Clips"
6: "6 Clips"
7: "7 Clips"
8: "8 Clips (Fill Mac-10)"
9: "9 Clips (Fill UMP 45)"
]
ammo_50ae (choices) : "Give .50 Deagle Ammo" : 0 =
[
0: "No"
1: "1 Clip (7 Bullets Per Clip)"
2: "2 Clips"
3: "3 Clips"
4: "4 Clips"
5: "5 Clips (Fill Desert Eagle)"
]
ammo_57mm (choices) : "Give 5.7mm Ammo" : 0 =
[
0: "No"
1: "1 Clip (50 Bullets Per Clip)"
2: "2 Clips (Fill Five-Seven & P90)"
]
ammo_357sig (choices) : "Give .357 SIG Ammo" : 0 =
[
0: "No"
1: "1 Clip (13 Bullets Per Clip)"
2: "2 Clips"
3: "3 Clips"
4: "4 Clips (Fill P-228)"
]
ammo_buckshot (choices) : "Give 12 Gauge Ammo" : 0 =
[
0: "No"
1: "1 Clip (8 Shells Per Clip)"
2: "2 Clips"
3: "3 Clips"
4: "4 Clips (Fill Benelli M3, XM1014)"
]
ammo_762nato (choices) : "Give 7.62mm NATO Ammo" : 0 =
[
0: "No"
1: "1 Clip (30 Bullets Per Clip)"
2: "2 Clips (Fill Scout & G3/S-G1)"
3: "3 Clips (Fill AK-47)"
]
ammo_556nato (choices) : "Give 5.56mm NATO Ammo" : 0 =
[
0: "No"
1: "1 Clip (30 Bullets Per Clip)"
2: "2 Clips"
3: "3 Fill SG552 M4A1 Aug SG550"
]
ammo_556natobox (choices) : "Give 5.56mm NATO Box Ammo" : 0 =
[
0: "No"
1: "1 Clip (30 Bullets Per Clip)"
2: "2 Clips"
3: "3 Clips"
4: "4 Clips"
5: "5 Clips"
6: "6 Clips"
7: "7 Clips (Fill FN M249 Para)"
]
ammo_338magnum (choices) : "Give .338 AWP Ammo" : 0 =
[
0: "No"
1: "1 Clip (10 Bullets Per Clip)"
2: "2 Clips"
3: "3 Clips (Fill AWP)"
]
]
@PointClass base(Targetname) size(-16 -16 -16, 16 16 16) iconsprite("sprites/CS/PlayerWeaponStrip.spr") = player_weaponstrip : "Strips player's weapons" []
// Obsolete (Code commented out)
//@PointClass base(Targetname) size(-8 -8 -8, 8 8 8) = game_player_hurt : "Hurts player who fires"
//[
// dmg(string) : "Damage To Apply" : "999"
// spawnflags(flags) =
// [
// 1: "Remove On fire" : 0
// ]
// master(string) : "Master (Obsolete)" : : "Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate."
//]

Then used a trigger system to release nades from these grenade boxes. I'm sure you could place a bunch of triggers around an fy_map to accomplish the same thing.
I'll post my vmf in the filebase as I'm sure this will be asked by many.
- DEAD

Link:
http://filebase.bots-united.com/inde...on=file&id=267

Zacker 30-01-2005 14:44

Re: he_city_b1
 
The method is quite simple and also works in HL.

The game_player_equip give the specified weapon to the activator. The player could fx. activate it through a trigger_multiple or through a button.

The game_weapon_strip or player_weaponstrip(HL1) is used to take away weapons from players.


All times are GMT +2. The time now is 15:14.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.