AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Knives (https://forums.alliedmods.net/showthread.php?t=2802)

Johnny got his gun 06-17-2004 10:39

Knives
 
Not really a scripting question here, but, does anyone know of a map where there are pick up-able knives laying on the ground, like in armoury_entity:s? Is it possible?

Maybe someone created such a knife that is possible to pick up?

jtp10181 06-17-2004 11:01

not sure what yuour using it for exactly.... but there is a knife model in the throwing knives plugin and once its gets thrown on the ground it can be picked back up.

rjlan82 06-17-2004 19:35

What are you looking to do with it exactly?

Peli 06-17-2004 19:38

Ka_arena I think , it has knives and armor on the floor that you pick up. Also ScoutKnives. :)

|2ob 06-17-2004 20:49

negative, ka_arena doesnt pick up knives, only armor, you get a knife when u pass through the enterance to get in the arena. its not on the ground.

Peli 06-17-2004 20:50

Okay , sorry forget , long time since I played that map.

Johnny got his gun 06-18-2004 03:24

Hmm ok doesn't seem like it would be possible for mappers. However scripters could of course make some simple custom entity on ground, with the entity touchable and when you run across it, the entity is deleted and you are give_item:ed a knife. I just assume this is the way throwing knives does it although I didn't check it.


Hm ok. good to know :-)

jtp10181 06-18-2004 09:51

yeah it is.... it used the former vexd touch for entities and touching them, when you touch a knife model it erases it and gives you an extra throwing knife.

Just make sure you don't return plugin_handled in the wrong place or you can't pick up anything ;)


All times are GMT -4. The time now is 14:48.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.