Raised This Month: $350 Target: $400
 87%   Almost there!

Solved [L4D2] Versus Mod can 100 per round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leaffan
Senior Member
Join Date: Jan 2013
Old 08-29-2019 , 02:03   [L4D2] Versus Mod can 100 per round
Reply With Quote #1

I'm sorry for my bad english!

I've consulted a friend of mine before, but the problem is that I have no idea how to use this code.

Quote:
Originally Posted by leaffan
Hello. I apologize for my bad English (Google Translate!)

In Left 4 Dead 2 Versus Mode, every round is healed fulleniyor 100. I want him to get 100 health fulls at the beginning of every round I want to do in the Scenario. How can I do? cvar etc. Is there?
Quote:
In round_start:
new iFlags = GetCommandFlags(sCommand);
SetCommandFlags(sCommand, iFlags & ~FCVAR_CHEAT);
FakeClientCommand(client, "give health");
SetCommandFlags(sCommand, iFlags);
I asked this question and he told me this code, how can I use it? Or do you have different opinions about this issue?

Thanks.

Last edited by leaffan; 08-30-2019 at 11:34.
leaffan is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-29-2019 , 06:20   Re: [L4D2] Versus Mod can 100 per round
Reply With Quote #2

You want to do that on COOP? Since versus always heals 100% of the hp every round doesn't make sense to me

But to use that you need to create a .sp file and put this code in the "round_start" event

Something like this post here:
https://forums.alliedmods.net/showthread.php?t=209090

Then you need to loop through all your clients and run the snippet code that you show above (maybe only survivors)
__________________
Marttt is offline
leaffan
Senior Member
Join Date: Jan 2013
Old 08-30-2019 , 11:33   Re: [L4D2] Versus Mod can 100 per round
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
You want to do that on COOP? Since versus always heals 100% of the hp every round doesn't make sense to me

But to use that you need to create a .sp file and put this code in the "round_start" event

Something like this post here:
https://forums.alliedmods.net/showthread.php?t=209090

Then you need to loop through all your clients and run the snippet code that you show above (maybe only survivors)
Sorry. When I thought it was unreasonable, I gave up on this. Thank you for your attention.

Can you help me with this? : https://forums.alliedmods.net/showthread.php?t=318392
leaffan is offline
Reply


Thread Tools
Display Modes

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 12:53.


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