AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   The Specialists: Weapon Event? Anyone? (https://forums.alliedmods.net/showthread.php?t=51322)

mysticssjgoku4 02-15-2007 20:03

The Specialists: Weapon Event? Anyone?
 
Hmm, well to all of you coders who are familiar with the modification "The Specialists" have any of you figured out a way to detect when a players picks up a weapon? May be the custom event name? Because I've tried "WeapPickup" and it hasn't triggered anything.

Thanks :)

stupok 02-15-2007 20:22

Re: The Specialists: Weapon Event? Anyone?
 
I remember searching for an event like this. I don't remember exactly how it went, but I think there was no message sent on weapon pickup and CurWeapon sent on weapon change. Use Damaged Soul's plugin if you'd like to confirm that.

If you want to prevent picking up weapons you might want to consider disabling the IN_USE button in prethink.

lunarwolfx 02-15-2007 23:16

Re: The Specialists: Weapon Event? Anyone?
 
It's pretty far back, but I think I did it by checking the slot change. For picking up the weapon, check only when the slot decreases

stupok 02-15-2007 23:58

Re: The Specialists: Weapon Event? Anyone?
 
But there is no message sent on weapon pickup, am I right? You'd have to constantly check to see if pdata has changed.

XxAvalanchexX 02-16-2007 00:19

Re: The Specialists: Weapon Event? Anyone?
 
WeaponInfo is sent when you change weapons. Not sure how to make sure if they just picked it up.

lunarwolfx 02-16-2007 00:22

Re: The Specialists: Weapon Event? Anyone?
 
Quote:

Originally Posted by stupok69 (Post 440975)
But there is no message sent on weapon pickup, am I right? You'd have to constantly check to see if pdata has changed.

There's event for slot change so that the speed changes when the player gains or loses weapons. I think it's called tslot or something like that.

Ryu2877 02-16-2007 00:37

Re: The Specialists: Weapon Event? Anyone?
 
"WeapPickup" fired "right before" the weapon been picked up, when this event trigger, the player isn't have the weapon yet.


All times are GMT -4. The time now is 00:42.

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