Raised This Month: $51 Target: $400
 12% 

L4D2 helps individual CVAR?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edwinvega86
Senior Member
Join Date: Feb 2016
Old 11-16-2018 , 06:19   L4D2 helps individual CVAR?
Reply With Quote #1

is there any way that a CVAR affects a type of infected or survivor?
for example these CVAR affects all the chargers

sm_cvar z_charge_max_speed
sm_cvar z_charge_duration


I would like to know if you could change a different CVAR for each charger

Any help or code please.
edwinvega86 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-16-2018 , 08:10   Re: L4D2 helps individual CVAR?
Reply With Quote #2

Quote:
I would like to know if you could change a different CVAR for each charger
What you mean?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
edwinvega86
Senior Member
Join Date: Feb 2016
Old 11-17-2018 , 02:51   Re: L4D2 helps individual CVAR?
Reply With Quote #3

Quote:
Originally Posted by Dragokas View Post
What you mean?
something like perk mod eh seen that some boomers allow vomiting walked and some do not or the smoker that the language of some is longer and some not.


sorry for my bad English
edwinvega86 is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 11-17-2018 , 14:08   Re: L4D2 helps individual CVAR?
Reply With Quote #4

The only way i know u could even remotely do what your trying is to set the cvar values u want just before the charger charges...it may or may not work how u intend however. Try it out....i did this with my pipepomb timer plugin...change it just as the player throws the bomb allows seperate cvar values per bomb throw...
MasterMind420 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-18-2018 , 16:41   Re: L4D2 helps individual CVAR?
Reply With Quote #5

So those have no specific prop_send or prop_data ?

You can dump these lists from server but beware, it will crash server sooner or later!

Code:
sm_dump_netprops Prop_Send.txt
sm_dump_datamaps Prop_Data.txt
__________________
Do not Private Message @me
Bacardi is offline
edwinvega86
Senior Member
Join Date: Feb 2016
Old 11-22-2018 , 01:07   Re: L4D2 helps individual CVAR?
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
So those have no specific prop_send or prop_data ?

You can dump these lists from server but beware, it will crash server sooner or later!

Code:
sm_dump_netprops Prop_Send.txt
sm_dump_datamaps Prop_Data.txt
Well I'll try both methods. although the recommendation of MasterMind420 seems to be safer.
Thanks for your information.

Last edited by edwinvega86; 11-22-2018 at 01:26.
edwinvega86 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-22-2018 , 01:55   Re: L4D2 helps individual CVAR?
Reply With Quote #7

Quote:
Originally Posted by edwinvega86 View Post
... although the recommendation of MasterMind420 seems to be safer.
You are wrong. Changing properties of all entities (and back it to defaults) is more CPU consuming operation than changing property on one entity only, if you do everything correctly of course.

I would check the behavior when changing such properties on charger:

https://wiki.alliedmods.net/Left_4_D...props#Charger:

m_flNextAttack
m_flMaxspeed
m_vecBaseVelocity
m_vecVelocity[3]
m_flLaggedMovementValue

https://wiki.alliedmods.net/Left_4_D...#CChargerClaw:

m_flSimulationTime
m_flCreateTime
m_flNextPrimaryAttack
m_flNextSecondaryAttack
m_flTimeWeaponIdle
m_flTimeAttackQueued
m_duration
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-22-2018 , 02:08   Re: L4D2 helps individual CVAR?
Reply With Quote #8

I would also, make a comparative analysis of all properties of Charger (first snapshot - by default, second - after changing CVAR) using tEntDev.

However, AFAIK, it has no properties offsets specific to Left4dead DT.
It's shame, nobody still didn't integrated there all L4D offsets for convenient tracking.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 03:31.


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