ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
Spawning animation-relevant items 'on-demand'?

« Previous 10 events | 1 2 | All Messages
Posted by/on
Question/AnswerMake Oldest Up Sort by Ascending
  20:51:51  8 March 2014
profilee-mailreply Message URLTo the Top
Sad Clown


On forum: 04/05/2010
Messages: 2230
Take a look in state_mgr_animation.script. Search for the process_special_action method. This is what attaches/detaches the item needed for animation. You can probably modify this to give the NPC the item if he doesn't have it. Will most likely need to switch the newly spawned item online and grab the level object. May need to keep track of the item you spawned so you can remove it when detach is called.
  13:10:45  8 March 2014
profilee-mailreply Message URLTo the Top
Senior Resident

On forum: 04/04/2007
Messages: 1706
Spawning animation-relevant items 'on-demand'?

90% or more of the NPCs in CS never use one or more of the items that is spawned on them. I want to make items like the guitar, binoculars, walkie-talkie, detector, and so on, spawn on-demand for when an NPC actually needs them, and despawn once the relevant animation has finished.

To give a very simple example: in the beginning of the game, Lebedev communicates with the trader via walkie-talkie. Well, I want to remove the walkie-talkie from Lebedev's character_desc_ configuration and instead have it spawn on him automatically whenever a walkie-talkie animation plays, and get likewise removed from him when the animation is over.

Is this feasible?
Each word should be at least 3 characters long.
Search conditions:    - spaces as AND    - spaces as OR   
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion

All short dates are in Month-Day-Year format.


Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.