Class based weapon pickup

Need Help? The Day isnt going so well on the Mapping front?
Post Reply
Scrap
npc_strider
npc_strider
Posts: 614
Joined: Mon Jul 24, 2006 1:13 am

Class based weapon pickup

Post by Scrap »

How to do that? Anyone got any tutorials or even better, example maps?
Like in oc_bunker you have to choose between gordon, sniper, gunner, and 1 more class i forgot.
destu
npc_helicopter
npc_helicopter
Posts: 995
Joined: Mon Jul 10, 2006 7:17 pm

Re: Class based weapon pickup

Post by destu »

Scrap wrote:How to do that? Anyone got any tutorials or even better, example maps?
Like in oc_bunker you have to choose between gordon, sniper, gunner, and 1 more class i forgot.
Demoman!
[JSC][GU]PREDATOR
Obsidian Premium
Obsidian Premium
Posts: 1624
Joined: Mon May 29, 2006 12:06 pm

Post by [JSC][GU]PREDATOR »

Demo man.
Scrap
npc_strider
npc_strider
Posts: 614
Joined: Mon Jul 24, 2006 1:13 am

Post by Scrap »

lol :lol: , oc_bunker fanboys
Mixon
Polygon
Polygon
Posts: 52
Joined: Sun Jun 18, 2006 12:40 pm
Location: Tricity
Contact:

Post by Mixon »

You make 4 paths with diffrent kinds of weapons in them... that's all I think :D
Jedyny w swym rodzaju Mixon
Image
Scrap
npc_strider
npc_strider
Posts: 614
Joined: Mon Jul 24, 2006 1:13 am

Post by Scrap »

no fancier way to do it? :(
well ill try it that way, escalator walkway, protal at end, and weapons on it, oh and a text about the class. Still kinda cheap
destu
npc_helicopter
npc_helicopter
Posts: 995
Joined: Mon Jul 10, 2006 7:17 pm

Post by destu »

Scrap wrote:no fancier way to do it? :(
well ill try it that way, escalator walkway, protal at end, and weapons on it, oh and a text about the class. Still kinda cheap
Be more creative!
Svanrog
Combine Rebel
Combine Rebel
Posts: 1319
Joined: Tue Jul 25, 2006 9:17 pm

Post by Svanrog »

You can't get away from how cheap the system is! :o
The best thing about it is how easy it is to customize! :D
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Use the game_player_equip entity.
Here is an example map for you to look at in hammer.
http://www.obsidianconflict.com/tutoria ... _equip.rar

You can have a trigger input to this entity and give the right weapons to the client that triggered it. Press smartedit in the entity properties to add more weapons to it.

This is how the entity looks in the VMF

Code: Select all

entity
{
	"id" "2"
	"classname" "game_player_equip"
	"targetname" "secret_equipment_1"
	"spawnflags" "0"
	"item_ammo_357_large" "1"
	"item_ammo_crossbow" "1"
	"weapon_crossbow" "1"
	"weapon_357" "1"
	"weapon_uzi" "2"
	"item_battery" "5"
	"item_ammo_ar2_altfire" "2"
	"weapon_sniperrifle" "1"
	"item_rpg_round" "3"
	"origin" "2 118 51"
	editor
	{
		"color" "220 30 220"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
	}
}
Might be easier to edit it in there.
Scrap
npc_strider
npc_strider
Posts: 614
Joined: Mon Jul 24, 2006 1:13 am

Post by Scrap »

skidz wrote:Use the game_player_equip entity.
Here is an example map for you to look at in hammer.
http://www.obsidianconflict.com/tutoria ... _equip.rar

You can have a trigger input to this entity and give the right weapons to the client that triggered it. Press smartedit in the entity properties to add more weapons to it.

This is how the entity looks in the VMF

Code: Select all

entity
{
	"id" "2"
	"classname" "game_player_equip"
	"targetname" "secret_equipment_1"
	"spawnflags" "0"
	"item_ammo_357_large" "1"
	"item_ammo_crossbow" "1"
	"weapon_crossbow" "1"
	"weapon_357" "1"
	"weapon_uzi" "2"
	"item_battery" "5"
	"item_ammo_ar2_altfire" "2"
	"weapon_sniperrifle" "1"
	"item_rpg_round" "3"
	"origin" "2 118 51"
	editor
	{
		"color" "220 30 220"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
	}
}
Might be easier to edit it in there.
thanks you so much! i luv u, will test it right after i eat.
Scrap
npc_strider
npc_strider
Posts: 614
Joined: Mon Jul 24, 2006 1:13 am

Post by Scrap »

ok 2 more questions, im tired of searching the net and might as well ask here.

a) how to tie the game_player_equip entity with a wall so when someone passes through it gives him the equippment

b)how the hell do i push a player , aka make him go through the portal.
[JSC][GU]PREDATOR
Obsidian Premium
Obsidian Premium
Posts: 1624
Joined: Mon May 29, 2006 12:06 pm

Post by [JSC][GU]PREDATOR »

To give a npc a weapon you must have cheats on then type in console npc_create_equipment weapon_ar2 (or any other weapon name)
then type in console npc_create_npc_alyx (or whatever npc you want to have the gun)

And i don't think your second question would be appropriate because noobs could just push you out of the space ship on js_zero.
Scrap
npc_strider
npc_strider
Posts: 614
Joined: Mon Jul 24, 2006 1:13 am

Post by Scrap »

[JSC]_PREDATOR wrote:To give a npc a weapon you must have cheats on then type in console npc_create_equipment weapon_ar2 (or any other weapon name)
then type in console npc_create_npc_alyx (or whatever npc you want to have the gun)

And i don't think your second question would be appropriate because noobs could just push you out of the space ship on js_zero.
say what? im asking about how to make the game_player_equip entity trigger when a player goes through a certain place(hidden wall or whatever)
and how to make a "push" effect for my portals so when a player steps in the corridor he dosent have to manually walk through the corridor to the portal but is instead pushed through it.
[JSC][GU]PREDATOR
Obsidian Premium
Obsidian Premium
Posts: 1624
Joined: Mon May 29, 2006 12:06 pm

Post by [JSC][GU]PREDATOR »

:shock: right! :P well i don't know how to answear your first one for the second one just use trigger_push in hammer, i wouldn't make the speed too fast tho or it could freeze for a moment.
Scrap
npc_strider
npc_strider
Posts: 614
Joined: Mon Jul 24, 2006 1:13 am

Post by Scrap »

[JSC]_PREDATOR wrote::shock: right! :P well i don't know how to answear your first one for the second one just use trigger_push in hammer, i wouldn't make the speed too fast tho or it could freeze for a moment.
theres a trigger_push :shock: :D thanks mate. Trigger push did the trick.
Post Reply