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

Solved [DOD:s] Weapon the value of numbers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mewbie222
Senior Member
Join Date: May 2018
Old 10-10-2018 , 10:23   [DOD:s] Weapon the value of numbers
Reply With Quote #1

Hello , I have a question , have this piece of code , there is a case for the conditions so my question is , how do you know the meaning of these numbers and what they mean. For example 35 and 36 that it is a value . And even I do not know where it is and where to look. Game day defeat source .
PHP Code:
if (GetConVarInt(Cvar_rules_mg_Enable) == 1)
{
new 
weapon_pos GetEventInt(event"weapon")


switch (
weapon_pos)
{
case 
35,36:   <---------------- value text event
{
new 
health[MAXPLAYERS 1]
health[client] = GetClientHealth(client)
if (
health[client] > 5)
{
health[client] = health[client] - 5
SetEntityHealth
(clienthealth[client])
PrintToChat(client"\x01\x04[Action]\x01 The jerking of your MG has caused you to hurt your arms because you had not deployed it before firing!")
}
else
{
ForcePlayerSuicide(client)
}
}

text string values here : https://github.com/VSES/SourceEngine...od_gamestats.h
P.S. code is not my only example.

Last edited by mewbie222; 10-11-2018 at 10:43. Reason: Thanks and Sorry, I am Solved.
mewbie222 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 16:59.


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