Raised This Month: $ Target: $400
 0% 

tank_spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ttfak12
Junior Member
Join Date: Mar 2016
Old 12-27-2020 , 22:55   tank_spawn
Reply With Quote #1

https://wiki.alliedmods.net/Left_4_D...nts#tank_spawn
PHP Code:
tank_spawn
Note
:
Name:    tank_spawn
Structure
:    
short    userid    User ID of the tank spawning now
long    tankid    Entindex of tank spawning right now

What is Entindex?
ttfak12 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 12-27-2020 , 23:00   Re: tank_spawn
Reply With Quote #2

Entindex means entity index.

In L4D1/2 usually is a value between 0~2048 (can be negative also).

EntIndex of a Tank will be a value between 1~32, since a tank is considered as a client.

You need the entity index in some functions.

Example:

char classname[64];
GetEntityClassname(entity, classname, sizeof(classname));

Probably if you use GetClientUserId(tankid) you will get the same value as the userid var.
__________________

Last edited by Marttt; 12-27-2020 at 23:02.
Marttt is offline
ttfak12
Junior Member
Join Date: Mar 2016
Old 12-27-2020 , 23:07   Re: tank_spawn
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
Entindex means entity index.

In L4D1/2 usually is a value between 0~2048 (can be negative also).

EntIndex of a Tank will be a value between 1~32, since a tank is considered as a client.

You need the entity index in some functions.

Example:

char classname[64];
GetEntityClassname(entity, classname, sizeof(classname));

Probably if you use GetClientUserId(tankid) you will get the same value as the userid var.
thx
ttfak12 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:37.


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