Page 1 of 1

Class based weapon pickup

Posted: Thu Jul 27, 2006 9:41 pm
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.

Re: Class based weapon pickup

Posted: Thu Jul 27, 2006 9:44 pm
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!

Posted: Thu Jul 27, 2006 9:44 pm
by [JSC][GU]PREDATOR
Demo man.

Posted: Thu Jul 27, 2006 9:45 pm
by Scrap
lol :lol: , oc_bunker fanboys

Posted: Thu Jul 27, 2006 10:21 pm
by Mixon
You make 4 paths with diffrent kinds of weapons in them... that's all I think :D

Posted: Thu Jul 27, 2006 10:23 pm
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

Posted: Thu Jul 27, 2006 10:45 pm
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!

Posted: Thu Jul 27, 2006 10:45 pm
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

Posted: Fri Jul 28, 2006 1:03 am
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.

Posted: Fri Jul 28, 2006 3:24 pm
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.

Posted: Sat Jul 29, 2006 1:13 am
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.

Posted: Sat Jul 29, 2006 1:25 am
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.

Posted: Sat Jul 29, 2006 1:32 am
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.

Posted: Sat Jul 29, 2006 1:35 am
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.

Posted: Sat Jul 29, 2006 1:59 am
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.