Raised This Month: $ Target: $400
 0% 

Create functional NPC? (Boss-like, player-like)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 05-18-2021 , 00:39   Re: Create functional NPC? (Boss-like, player-like)
Reply With Quote #3

Found some info:

- Creating a "monster" with the code attached in the previous post isn't really performant as it updates OnGameFrame, so, high resource demand is a fact.
- Func_track_train is not fully working in CSGO.
- Maybe creating a timer to update the entity is needed to create smart-like behaviour.
- Animating isn't as easy as i thought, but i added another ELSE so i can change animation's playbackrate:

PHP Code:
else if (StrEqual(attribute"playbackrate")){
            
            
float speed StringToFloat(value);
            
SetVariantFloat(speed);
            
AcceptEntityInput(monster"SetPlaybackRate");
            
SetArrayCell(MonsterPlayBackRatemIndexspeed);
        } 
This will help to use "move_knife_w" animation and make it walk forward instead of backward.

Still haven't tried it all, nor studied it all, but, path_track isn't a reliable option it seems.

And TrainTrack plugin (category ANY) isn't properly working, just couldn't make any model to follow a path_track, it just disappears doing nothing.
__________________
Massive Infection:: Piu-Games
Desktop is offline
 



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 13:39.


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