Raised This Month: $32 Target: $400
 8% 

Noob questions...


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-23-2017 , 19:57   Re: Noob questions...
Reply With Quote #11

Yes, that's what the guy said, guessed it was the same as godmode. But I don't know what's 'monsters'.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-23-2017 , 19:58   Re: Noob questions...
Reply With Quote #12

Zombies and other creatures in Half Life.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-23-2017 , 20:20   Re: Noob questions...
Reply With Quote #13

Oh, Ok then.
__________________








CrazY. is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-23-2017 , 21:41   Re: Noob questions...
Reply With Quote #14

Quote:
Originally Posted by CrazY. View Post
1. What is different between 'static' and 'new'? How to know when to use each one?
static functions and static global variables are visible only in this file.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-23-2017 , 22:04   Re: Noob questions...
Reply With Quote #15

The size used by a new or static it's the same ?
__________________








CrazY. is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-23-2017 , 22:07   Re: Noob questions...
Reply With Quote #16

Quote:
Originally Posted by CrazY. View Post
The size used by a new or static it's the same ?
Yup.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-23-2017 , 23:38   Re: Noob questions...
Reply With Quote #17

FL_NOTARGET is invisible to NPCs (I say NPC because people might believe "monsters" as like Zombies in ZP).

Pretty much every monster in Half-Life and mods (monster_ entities, may require mp_allow_monsters) and, AFAIK, sentries in TFC.

CS doesn't have monsters.

Also, why isn't there a native which sets notarget?
__________________

Last edited by gabuch2; 05-23-2017 at 23:38.
gabuch2 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-24-2017 , 04:18   Re: Noob questions...
Reply With Quote #18

Probably because you can just set pev_flags.
klippy is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 05-24-2017 , 07:44   Re: Noob questions...
Reply With Quote #19

1. "Static", as OciXCrom said, need to use in fuction with frequent calling, cause static is not recreating on next call, it's just use already created static variable, that means value of this variable will not delete. Static in function ( not in global ) will not delete and will stay before it will not be used again and again.

"New" can be used in function without frequent calls and where not need to left variable to much time in the memory. When function will end - variable wich created with "new" will be deleted

[spoler]
I 'm not sure, but if i create few entitys and will use static on it, then will delete all of this ent's - i can got a crash with hashstack overflow. If i'm wrong - correct me[/spoler]
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 05-24-2017 at 08:58.
DeMNiX is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-24-2017 , 08:22   Re: Noob questions...
Reply With Quote #20

Ok demnix, thanks
__________________








CrazY. 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 15:48.


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