AlliedModders

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

edon1337 02-15-2017 09:40

Ham_Blocked
 
Hi,

1. There was only one thread when I searched for Ham_Blocked and it contained nothing useful. What's the actual purpose of this function? Does it get called if player is blocking an entity from moving (Helicopter) ?

2. In Zombie Escape , is the helicopter's classname func_train ?

3. How to get the highest value between some values? ( 1 , 3 , 5 , 10 , 1000 ) and the lowest?

OciXCrom 02-15-2017 15:37

Re: Ham_Blocked
 
2. Depends on the map, not on the mod. I'm pretty sure it's func_train. You can use any kind of entity checker and see for yourself.

3. min & max functions.

Natsheh 02-15-2017 16:03

Re: Ham_Blocked
 
3. clamp(variable, min, max)

edon1337 02-15-2017 16:03

Re: Ham_Blocked
 
2. Ah, thanks.
3. Never knew they existed, thanks.

georgik57 02-18-2017 10:48

Re: Ham_Blocked
 
1. Whenever you don't know stuff like this, search the include files.
Quote:

Originally Posted by ham_const.inc
/**
* Description: Normally called whenever one entity blocks another from moving.
* Forward params: function(this, idother);
* Return type: None.
* Execute params: ExecuteHam(Ham_Blocked, this, idother);
*/
Ham_Blocked,


edon1337 02-18-2017 11:13

Re: Ham_Blocked
 
Quote:

Originally Posted by georgik57 (Post 2496365)
1. Whenever you don't know stuff like this, search the include files.

I already have.


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

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