Raised This Month: $ Target: $400
 0% 

Pushable block?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 11-03-2007 , 13:41   Pushable block?
Reply With Quote #1

Is thare enyway i can spawn a block infront of a user that can be pushed by the user? like in hl1 when you can use E to move the block.
fxfighter is offline
Send a message via MSN to fxfighter
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-03-2007 , 14:09   Re: Pushable block?
Reply With Quote #2

Check if the user is touching the ent , then check the buttons, then move the ent by incrase origin.

E.g: User touching the ent -> If button & IN_FORWARD -> Move ent in front by Origin[0] += 5.0 //units.
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 11-03-2007 at 14:12.
Alka is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 11-04-2007 , 05:33   Re: Pushable block?
Reply With Quote #3

Buttons
think i get it but how can i compare 2 buttons?
show me an example plz.
Relly want to use use button and foreward.

Move Block
But if a player tuch the block and move to the left whit
it.
it will always go the same way.
how can i do so it goes to the players left all time
and not the block left side.

Another problem
Will happen,players can move the block on to people and walls and if they move the block on people .
The event will be triggered again.
fxfighter is offline
Send a message via MSN to fxfighter
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-04-2007 , 06:20   Re: Pushable block?
Reply With Quote #4

Hmm, i've maked something, but is not working as i espect! Buttons check and touch works but the direction is the problem because i must push the block in the direction of player :s...dunno. Maybe someone else know how to do this... ? Fatalis have a "carpet block" on his bcm4...and you can fly with that block, and is moving with player in his direction.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-04-2007 , 06:52   Re: Pushable block?
Reply With Quote #5

May be you could check existing pushable entities properties to find the one that make them pushable.
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-04-2007 , 07:17   Re: Pushable block?
Reply With Quote #6

Quote:
Originally Posted by connorr View Post
May be you could check existing pushable entities...
Like ? :s
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-04-2007 , 08:22   Re: Pushable block?
Reply With Quote #7

There's somme maps with pushable boxes ( i remember a quite dark rats maps with a micro waves, and with a box like that ).
Also there's a ball you can push with +use in cs_rio .
ConnorMcLeod is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 11-04-2007 , 08:33   Re: Pushable block?
Reply With Quote #8

Alka: You can use velocity_by_aim() to move the box in the direction the player is aiming at
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 11-04-2007 , 11:37   Re: Pushable block?
Reply With Quote #9

Quote:
Originally Posted by connorr View Post
May be you could check existing pushable entities properties to find the one that make them pushable.
as he mention it shuld be a value ,wonder what that is...
wuld make it a lot easier and less code.
fxfighter is offline
Send a message via MSN to fxfighter
Old 11-06-2007, 08:07
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
Reply



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 01:15.


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