AlliedModders

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

- Billy The Kid - 12-26-2006 16:50

CurWeapon
 
Few questions, regarding this... I've searched and didn't seem to find answers :)

1) What actually is CurWeapon, I realise that this message is called when weapon changes, and that contains which weapon is switched to?
2) What would blocking of this message do? I would like to block CurWeapon message to test something... I'm also interested in a way to delay this message. I've tried to block with this code:

Code:

public plugin_init() {
    register_message(get_user_msgid("CurWeapon"), "block")
}
 
public block(msg_id, msg_dest, entity) {
    return PLUGIN_HANDLED
}

Either it didn't block or I'm not aware it is blocked. Everything in-game seems to be regular during weapon change while plug-in is active, and no error is present in server console.

XxAvalanchexX 12-26-2006 16:55

Re: CurWeapon
 
It updates the display in the bottom right corner. So, it's called when weapon changes, and when you shoot.

- Billy The Kid - 12-26-2006 18:12

Re: CurWeapon
 
Brief answer to most of questions, 2 sentences, karma up :D


All times are GMT -4. The time now is 22:26.

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