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

flLaggedMovementValue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 12-08-2016 , 16:04   flLaggedMovementValue
Reply With Quote #1

PHP Code:
unsigned char *ptr = (unsigned char *)(pEntity) + Offset_flLaggedMovementValue
(*(
char *)ptr flValue); 
Speed not change when i use that
But that method work with health, armor, ect. Smbd know why?
__________________
gubka is offline
Send a message via ICQ to gubka
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 12-08-2016 , 16:57   Re: flLaggedMovementValue
Reply With Quote #2

Why do you use an unsigned char pointer to modify a float value..?
__________________
micapat is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 12-08-2016 , 18:53   Re: flLaggedMovementValue
Reply With Quote #3

Quote:
Originally Posted by micapat View Post
Why do you use an unsigned char pointer to modify a float value..?
i Saw it here https://github.com/alliedmodders/css...utils.cpp#L151
__________________
gubka is offline
Send a message via ICQ to gubka
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 12-09-2016 , 15:08   Re: flLaggedMovementValue
Reply With Quote #4

unsigned char *ptr = (unsigned char *)(pEntity) + Offset_flLaggedMovementValue;
*(float *) ptr = flValue;
__________________
micapat is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 12-09-2016 , 15:32   Re: flLaggedMovementValue
Reply With Quote #5

Yes thank, i did it, now i don't know how to set Gravity because m_flGravity can't be find in the CSSPlayer and i have big problem with switch team signature
__________________
gubka is offline
Send a message via ICQ to gubka
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-09-2016 , 17:27   Re: flLaggedMovementValue
Reply With Quote #6

From the multiple number of questions you have and based on most of the replies, it sounds like you should be writing a sm plugin, not an extension.
Dr!fter is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-10-2016 , 07:45   Re: flLaggedMovementValue
Reply With Quote #7

Quote:
Originally Posted by Dr!fter View Post
From the multiple number of questions you have and based on most of the replies, it sounds like you should be writing a sm plugin, not an extension.
This is important. You should be writing an extension to expose what needs to be in C++ to SourcePawn (if anything), and tie it together with all your game logic in a plugin. You're having to do a lot of work because the extension API is incompatible with what you're trying to do, as the name implies, it only exists to extend plugin functionality, not as an alternative.
__________________
asherkin is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 12-10-2016 , 22:32   Re: flLaggedMovementValue
Reply With Quote #8

Quote:
Originally Posted by asherkin View Post
This is important. You should be writing an extension to expose what needs to be in C++ to SourcePawn (if anything), and tie it together with all your game logic in a plugin. You're having to do a lot of work because the extension API is incompatible with what you're trying to do, as the name implies, it only exists to extend plugin functionality, not as an alternative.
Do not worry, i just practicing, and want just to write basic zombie escape mod [lite] really simple game-play, which not require any sm plugin, except zombie classes
__________________
gubka is offline
Send a message via ICQ to gubka
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 17:21.


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