Custom Weapon Drop & Pickup
im trying to make it so if you have a custom gun and you drop it or you die the custom model shows on floor and also when picked up that player gets the custom weapon..
this is my code so far.. but i have NO idea howto even start... if someone could point me in the right direction id be very thankful.. Code:
i do have the w_ models also ... |
Re: Custom Weapon Drop
Take a look at GHW Weapon Replacement.
|
Re: Custom Weapon Drop
Quote:
im assuming i can do same way with weapon pickup? detect is picked up weapon is custom model if it is then set weapon to custom weapon... EDIT: ok no luck.. is it possible to detect the weapons model when pickup? so if the model on w_ is custom and you pick it up... is it possible to check if( equal( pickedupgun, "model/custom/custom.mdl" ) ) { set_pev( etc etc etc... ? |
Re: Custom Weapon Drop
Code:
#include <amxmodx> |
Re: Custom Weapon Drop
ive made a slight edit so i can use the const g_weaponModels[][] in more then one way..
Code:
is there anyway when you pickup a weapon in WeapPickup event to check the modelname? and match it to a custom one? to then auto set true on a bool on that player? |
Re: Custom Weapon Drop
Quote:
|
Re: Custom Weapon Drop & Pickup
Can be done by hooking Touch and then check the model.
|
Re: Custom Weapon Drop & Pickup
Quote:
Code:
Code:
this is totally wrong cos its totally not working. |
Re: Custom Weapon Drop & Pickup
You should hook it with engine so you can specify the classnames. Also modelname will be the full directory from game directory eg. models/w_deagle.mdl
|
Re: Custom Weapon Drop & Pickup
Quote:
|
| All times are GMT -4. The time now is 16:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.