AlliedModders

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

Shinzon 02-20-2006 00:05

Shield constant??
 
Where can i find shield constant?
Like:
Code:

CSW_SG552                27
CSW_AK47                28

CSW_KNIFE                29
CSW_P90                        30

On wiki-page not listed...

Jordan 02-20-2006 00:09

Only thing I know with shields is cs_get_user_shield(id).

GHW_Chronic 02-20-2006 00:17

y do u need the shield constant? pretty sure one doesnt exist, you cannot kill someone with the shield, if you have a shield out get_weapon_id (or w/e) will return your pistol's id.

you can do the register_event curweapon and pick up a shield and see what it prints out for (read_data 1 is it?) read_data(1).

Shinzon 02-20-2006 00:27

Plz look at this post
from me.
Quote:

Originally Posted by GHW_Chronic
y do u need the shield constant?

Needed for easy prevent player pickup shields from CT's.
There should be an id...(if not, code posted don't work).

Hmmmmm...

But will try ur hint.

Thx.

Jordan 02-20-2006 00:31

Why don't you just restrict the shield?

GHW_Chronic 02-20-2006 00:33

y dont u ask dizzy that?

Jordan 02-20-2006 00:33

Yeah... why don't I ask dizzy that.

Shinzon 02-20-2006 00:36

Quote:

Originally Posted by satanwoj
Why don't you just restrict the shield?

Maybe me likes to have CT's have a shield and T's never shouldn't have?
My choice.... :wink:

Nope, just like to see the possibility.

VEN 02-22-2006 13:44

There are no such shiled constant.
Also you do not need it to do what you want.


All times are GMT -4. The time now is 20:17.

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