Skip to content

Commit

Permalink
Rename/Move files
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalBlue1 committed Dec 8, 2023
1 parent 2f8877f commit 1db8c6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
9 changes: 3 additions & 6 deletions Northstar.Custom/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,17 +441,14 @@
"RunOn": "CLIENT || SERVER || UI"
},
{
"Path": "sh_event_models.gnut",
"RunOn": "( CLIENT || SERVER ) && LOBBY",
"ClientCallback": {
"Before": "EventModelsInit"
},
"Path": "_event_models.gnut",
"RunOn": "SERVER && LOBBY",
"ServerCallback": {
"Before": "EventModelsInit"
}
},
{
"Path": "ui_ns_custom_mod_settings.gnut",
"Path": "ui/ns_custom_mod_settings.gnut",
"RunOn": "UI",
"UICallback":{
"Before": "NSCustomModSettings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,16 @@ void function EventModelsInit()
PrecacheModel( $"models/northstar/desertlands_holiday_tree.mdl" )
PrecacheModel( $"models/northstar/floor.mdl" )

#if SERVER

if( !GetConVarBool( "ns_show_event_models" ) )
return

table timeParts = GetUnixTimeParts()
int month = expect int( timeParts[ "month" ] )
int day = expect int( timeParts[ "day" ] )


if( ( ( month == 12 ) && ( day >= 18 ) ) || ( ( month == 1 ) && ( day <= 6 ) ) )
{
CreatePropDynamic( $"models/northstar/desertlands_holiday_tree.mdl", < -60, 740, 30 >, < 0, 0, 0 >, SOLID_VPHYSICS, 1000 )
CreatePropDynamic( $"models/northstar/floor.mdl", < -60, 740, 30 >, < 0, 0, 0 >, SOLID_VPHYSICS, 1000 )
}
#endif

}

0 comments on commit 1db8c6b

Please sign in to comment.