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

entity lifetime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usurpator
Member
Join Date: Jan 2011
Location: Russia
Old 04-28-2011 , 00:25   entity lifetime
Reply With Quote #1

hello,
what entity's prop should i change to change entity's lifetime?

ex: my entities are light_dynamic and smokegrenade_projectile

i tried m_fLife, but it didn't work
usurpator is offline
miniman
Senior Member
Join Date: Aug 2009
Location: Israel
Old 04-28-2011 , 05:17   Re: entity lifetime
Reply With Quote #2

I think it was asked like 200 times I believe that you can find it in the forums
miniman is offline
usurpator
Member
Join Date: Jan 2011
Location: Russia
Old 04-28-2011 , 08:04   Re: entity lifetime
Reply With Quote #3

first thing i did was searching
but i found nothing

i found some props but they are only for certain type of entities(m_f%entname%Life)
usurpator is offline
FoxMulder
Senior Member
Join Date: Jan 2009
Location: Orlando, FL
Old 04-28-2011 , 08:25   Re: entity lifetime
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=129135
I think this is what you are looking for.
__________________
FoxMulder is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-28-2011 , 09:24   Re: entity lifetime
Reply With Quote #5

I'm not sure did @usurpator want add more time to those smoke grenades.. #9

When throw weapon_smokegrenades, those stay visible few seconds before fade out.
But they still exist on field, can't see those anymore.
Something to do render or similiar ??

Dam, that was good simple tutorial @Mulder, I better put it up when need next time.
Bacardi is offline
usurpator
Member
Join Date: Jan 2011
Location: Russia
Old 04-28-2011 , 09:26   Re: entity lifetime
Reply With Quote #6

that doesn't work for sg grenade
problem is that sg grenade disappears in some seconds and i need to increase or decrease this time
SetEntityRenderFx(entity, RENDERFX_NONE) doesn't work too

Last edited by usurpator; 04-28-2011 at 09:29.
usurpator is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-28-2011 , 09:43   Re: entity lifetime
Reply With Quote #7

PHP Code:
SetEntProp(entityProp_Data"m_nRenderMode"0); 
But it show it less than 1 second after it fade out...

Maybe there is some short float time somewhere.


*edit
dam, it's not m_nRenderMode, it's still disapear. It only mess fading.

*edit
Code:
 -Member: m_clrRender (offset 116) (type integer) (bits 32)
Is closest what mess smokegrenade fade time.
Need give it -20000000 but it still try fade out.

Last edited by Bacardi; 04-28-2011 at 10:39.
Bacardi 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 11:22.


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